diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-07-21 11:37:11 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-07-21 11:37:11 -0700 |
commit | 2c697d86791b0771e34b44d0b6864030595c6334 (patch) | |
tree | 8dea1d111fb444394498de7544d363fd13fa6ec1 | |
parent | e81da299fb49bd79cd460d477ec0bb673035620a (diff) | |
download | mu-2c697d86791b0771e34b44d0b6864030595c6334.tar.gz |
3118
Failures in scenarios should consistently trigger the summary message showing number of failed tests.
-rw-r--r-- | 050scenario.cc | 4 |
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(); |