Commit 75c344bd authored by Lev Walkin's avatar Lev Walkin

expect the whole buffer to be consumed

parent 364db624
......@@ -89,6 +89,7 @@ load_object(enum expectation expectation, char *fbuf, int size) {
if(expectation != EXP_BROKEN) {
assert(rval.code == RC_OK);
assert(fbuf_offset == size);
} else {
assert(rval.code != RC_OK);
fprintf(stderr, "Failed, but this was expected\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment