diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-10-20 20:17:21 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-10-20 20:17:21 -0700 |
commit | 2ada05dc69e930d096d8d6773d3191d2befe253a (patch) | |
tree | 4224f68089031918d3efd8ff867684eda865ae78 | |
parent | 59d827a27472d90cb7d22be8ef6a3b161fb1c0dc (diff) | |
download | mu-2ada05dc69e930d096d8d6773d3191d2befe253a.tar.gz |
3530
Coalesce some duplicate signalling that the current test failed.
-rw-r--r-- | 050scenario.cc | 2 | ||||
-rw-r--r-- | 072scheduler.cc | 8 | ||||
-rw-r--r-- | 073wait.cc | 8 |
3 files changed, 5 insertions, 13 deletions
diff --git a/050scenario.cc b/050scenario.cc index cb16482d..7f3178c9 100644 --- a/050scenario.cc +++ b/050scenario.cc @@ -178,9 +178,9 @@ void run_mu_scenario(const scenario& s) { bind_special_scenario_names(tmp.at(0)); transform_all(); run(tmp.front()); + // End Mu Test Teardown if (!Hide_errors && trace_count("error") > 0) Passed = false; - // End Mu Test Teardown if (!Passed) ++Num_failures; if (not_already_inside_test && Trace_stream) { diff --git a/072scheduler.cc b/072scheduler.cc index 38f62fa0..e027b9dc 100644 --- a/072scheduler.cc +++ b/072scheduler.cc @@ -545,15 +545,11 @@ if (Current_routine->limit >= 0) { } :(before "End Test Teardown") -if (Passed && any_routines_with_error()) { - Passed = false; +if (Passed && any_routines_with_error()) raise << "some routines died with errors\n" << end(); -} :(before "End Mu Test Teardown") -if (Passed && any_routines_with_error()) { - Passed = false; +if (Passed && any_routines_with_error()) raise << Current_scenario->name << ": some routines died with errors\n" << end(); -} :(code) bool any_routines_with_error() { diff --git a/073wait.cc b/073wait.cc index cf584d69..1290b561 100644 --- a/073wait.cc +++ b/073wait.cc @@ -33,20 +33,16 @@ int waiting_on_location; waiting_on_location = 0; :(before "End Mu Test Teardown") -if (Passed && any_routines_waiting()) { - Passed = false; +if (Passed && any_routines_waiting()) raise << Current_scenario->name << ": deadlock!\n" << end(); -} :(before "End Run Routine") if (any_routines_waiting()) { raise << "deadlock!\n" << end(); dump_waiting_routines(); } :(before "End Test Teardown") -if (Passed && any_routines_with_error()) { - Passed = false; +if (Passed && any_routines_with_error()) raise << "some routines died with errors\n" << end(); -} :(code) bool any_routines_waiting() { for (int i = 0; i < SIZE(Routines); ++i) { |