check the return value from toku-serialize_brtnode_to

git-svn-id: file:///svn/toku/tokudb@10134 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
Rich Prohaska 2013-04-16 23:57:44 -04:00 committed by Yoni Fogel
parent 700e9e67d1
commit 70249e065f

View file

@ -63,7 +63,8 @@ static void test_serialize(void) {
assert(b==4096);
}
toku_serialize_brtnode_to(fd, make_blocknum(20), &sn, brt->h, 1, 1); assert(r==0);
r = toku_serialize_brtnode_to(fd, make_blocknum(20), &sn, brt->h, 1, 1);
assert(r==0);
r = toku_deserialize_brtnode_from(fd, make_blocknum(20), 0/*pass zero for hash*/, &dn, brt_h);
assert(r==0);