diff options
author | Josh Haberman <jhaberman@gmail.com> | 2015-08-11 17:46:31 -0700 |
---|---|---|
committer | Josh Haberman <jhaberman@gmail.com> | 2015-08-11 17:46:31 -0700 |
commit | 85440108e502b6f58671fcfc4b84103d1a716253 (patch) | |
tree | 87c6b186feb7b89fb84b3125653b0fe2d7ade339 /tests/test_util.h | |
parent | fe427341f29a31656e247ef528adbab5ad786c9e (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.h | 15 |
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; |