about summary refs log tree commit diff stats
path: root/003trace.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-10-20 20:22:12 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-10-20 20:22:12 -0700
commiteef0251c591a25e0405568869cb3542daae8b6f5 (patch)
treec705c8a17a851e562a43a6a14a83ba7423b54bee /003trace.cc
parentdddc384c5124febdf111730fa760dcb6a06e7155 (diff)
downloadmu-eef0251c591a25e0405568869cb3542daae8b6f5.tar.gz
3532
Coalesce all the management of number of failed scenarios.
Diffstat (limited to '003trace.cc')
-rw-r--r--003trace.cc4
1 files changed, 0 insertions, 4 deletions
diff --git a/003trace.cc b/003trace.cc
index 6c4bbabf..5f807476 100644
--- a/003trace.cc
+++ b/003trace.cc
@@ -178,7 +178,6 @@ int Trace_errors = 0;  // used only when Trace_stream is NULL
 :(before "End Test Teardown")
 if (Passed && !Hide_errors && trace_count("error") > 0) {
   Passed = false;
-  ++Num_failures;
 }
 
 :(before "End Types")
@@ -220,7 +219,6 @@ START_TRACING_UNTIL_END_OF_SCOPE
 #define CHECK_TRACE_CONTAINS_ERROR()  CHECK(trace_count("error") > 0)
 #define CHECK_TRACE_DOESNT_CONTAIN_ERROR() \
   if (Passed && trace_count("error") > 0) { \
-    ++Num_failures; \
     cerr << "\nF - " << __FUNCTION__ << "(" << __FILE__ << ":" << __LINE__ << "): unexpected errors\n"; \
     DUMP("error"); \
     Passed = false; \
@@ -229,7 +227,6 @@ START_TRACING_UNTIL_END_OF_SCOPE
 
 #define CHECK_TRACE_COUNT(label, count) \
   if (Passed && trace_count(label) != (count)) { \
-    ++Num_failures; \
     cerr << "\nF - " << __FUNCTION__ << "(" << __FILE__ << ":" << __LINE__ << "): trace_count of " << label << " should be " << count << '\n'; \
     cerr << "  got " << trace_count(label) << '\n';  /* multiple eval */ \
     DUMP(label); \
@@ -260,7 +257,6 @@ bool check_trace_contents(string FUNCTION, string FILE, int LINE, string expecte
     split_label_contents(expected_lines.at(curr_expected_line), &label, &contents);
   }
 
-  ++Num_failures;
   if (line_exists_anywhere(label, contents)) {
     cerr << "\nF - " << FUNCTION << "(" << FILE << ":" << LINE << "): line [" << label << ": " << contents << "] out of order in trace:\n";
     DUMP("");