summaryrefslogtreecommitdiff
path: root/tests/test_util.h
diff options
context:
space:
mode:
authorJosh Haberman <jhaberman@gmail.com>2015-08-11 17:46:31 -0700
committerJosh Haberman <jhaberman@gmail.com>2015-08-11 17:46:31 -0700
commit85440108e502b6f58671fcfc4b84103d1a716253 (patch)
tree87c6b186feb7b89fb84b3125653b0fe2d7ade339 /tests/test_util.h
parentfe427341f29a31656e247ef528adbab5ad786c9e (diff)
More decoder fixes, and slightly changed parse call semantics.
Prior to this change, if an error was returned, it would be guaranteed to always return a short byte count. Now the two concepts are a bit more orthogonal. There are cases where the entire input is consumed even though an error was encountered.
Diffstat (limited to 'tests/test_util.h')
-rw-r--r--tests/test_util.h15
1 files changed, 0 insertions, 15 deletions
diff --git a/tests/test_util.h b/tests/test_util.h
index eafee64..f3d5d5a 100644
--- a/tests/test_util.h
+++ b/tests/test_util.h
@@ -117,21 +117,6 @@ class VerboseParserEnvironment {
}
}
- if (status_.ok() != (parsed >= bytes)) {
- if (status_.ok()) {
- fprintf(stderr,
- "Error: decode function returned short byte count but set no "
- "error status\n");
- } else {
- fprintf(stderr,
- "Error: decode function returned complete byte count but set "
- "error status\n");
- }
- fprintf(stderr, "Status: %s, parsed=%u, bytes=%u\n",
- status_.error_message(), (unsigned)parsed, (unsigned)bytes);
- ASSERT(false);
- }
-
if (!status_.ok())
return false;
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback