about summary refs log tree commit diff stats
path: root/073wait.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-10-20 20:17:21 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-10-20 20:17:21 -0700
commit2ada05dc69e930d096d8d6773d3191d2befe253a (patch)
tree4224f68089031918d3efd8ff867684eda865ae78 /073wait.cc
parent59d827a27472d90cb7d22be8ef6a3b161fb1c0dc (diff)
downloadmu-2ada05dc69e930d096d8d6773d3191d2befe253a.tar.gz
3530
Coalesce some duplicate signalling that the current test failed.
Diffstat (limited to '073wait.cc')
-rw-r--r--073wait.cc8
1 files changed, 2 insertions, 6 deletions
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) {