summaryrefslogtreecommitdiff
path: root/tests/test_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_util.h')
-rw-r--r--tests/test_util.h21
1 files changed, 6 insertions, 15 deletions
diff --git a/tests/test_util.h b/tests/test_util.h
index d2d30a4..f3d5d5a 100644
--- a/tests/test_util.h
+++ b/tests/test_util.h
@@ -53,10 +53,16 @@ class VerboseParserEnvironment {
bool Start() {
+ if (verbose_) {
+ fprintf(stderr, "Calling start()\n");
+ }
return sink_->Start(len_, &subc_);
}
bool End() {
+ if (verbose_) {
+ fprintf(stderr, "Calling end()\n");
+ }
return sink_->End();
}
@@ -111,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