about summary refs log tree commit diff stats
path: root/050scenario.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-07-21 11:37:11 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-07-21 11:37:11 -0700
commit2c697d86791b0771e34b44d0b6864030595c6334 (patch)
tree8dea1d111fb444394498de7544d363fd13fa6ec1 /050scenario.cc
parente81da299fb49bd79cd460d477ec0bb673035620a (diff)
downloadmu-2c697d86791b0771e34b44d0b6864030595c6334.tar.gz
3118
Failures in scenarios should consistently trigger the summary message
showing number of failed tests.
Diffstat (limited to '050scenario.cc')
-rw-r--r--050scenario.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/050scenario.cc b/050scenario.cc
index c9f9d101..eed98d1b 100644
--- a/050scenario.cc
+++ b/050scenario.cc
@@ -155,10 +155,10 @@ void run_mu_scenario(const scenario& s) {
   bind_special_scenario_names(tmp.at(0));
   transform_all();
   run(tmp.front());
-  if (Passed && !Hide_errors && trace_count("error") > 0) {
+  if (!Hide_errors && trace_count("error") > 0)
     Passed = false;
+  if (!Passed)
     ++Num_failures;
-  }
   // End Mu Test Teardown
   if (not_already_inside_test && Trace_stream) {
     teardown();