Skip to content
Snippets Groups Projects
Commit 75c344bd authored by Lev Walkin's avatar Lev Walkin
Browse files

expect the whole buffer to be consumed

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