about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-11-05 20:44:57 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-11-05 20:46:59 -0700
commit3badf009dfad5e0847fb88abe0d8251ad72ec1ad (patch)
treeb5e43febc4990cc066a6a87dc999d0b94fa1c948
parentf9294899d0b952072de3dc87b3ea97e98f150ea4 (diff)
downloadmu-3badf009dfad5e0847fb88abe0d8251ad72ec1ad.tar.gz
3623
Umpteenth bugfix to ensure we show the number of failed scenarios.
-rw-r--r--050scenario.cc1
-rw-r--r--html/050scenario.cc.html1
2 files changed, 2 insertions, 0 deletions
diff --git a/050scenario.cc b/050scenario.cc
index 3136cac5..ba4a2309 100644
--- a/050scenario.cc
+++ b/050scenario.cc
@@ -140,6 +140,7 @@ if (Num_core_mu_scenarios != SIZE(Scenarios)) {
 //?     cerr << '\n' << i << ": " << Scenarios.at(i).name;
     run_mu_scenario(Scenarios.at(i));
     if (Passed) cerr << ".";
+    else ++Num_failures;
   }
   cerr << "\n";
 }
diff --git a/html/050scenario.cc.html b/html/050scenario.cc.html
index d44504a0..ca19e9be 100644
--- a/html/050scenario.cc.html
+++ b/html/050scenario.cc.html
@@ -179,6 +179,7 @@ Hide_missing_default_space_errors = <span class="Constant">false</span><span cla
 <span class="CommentedCode">//?     cerr &lt;&lt; '\n' &lt;&lt; i &lt;&lt; &quot;: &quot; &lt;&lt; Scenarios.at(i).name;</span>
     run_mu_scenario<span class="Delimiter">(</span>Scenarios<span class="Delimiter">.</span>at<span class="Delimiter">(</span>i<span class="Delimiter">));</span>
     <span class="Normal">if</span> <span class="Delimiter">(</span>Passed<span class="Delimiter">)</span> cerr &lt;&lt; <span class="Constant">&quot;.&quot;</span><span class="Delimiter">;</span>
+    <span class="Normal">else</span> ++Num_failures<span class="Delimiter">;</span>
   <span class="Delimiter">}</span>
   cerr &lt;&lt; <span class="Constant">&quot;</span><span class="cSpecial">\n</span><span class="Constant">&quot;</span><span class="Delimiter">;</span>
 <span class="Delimiter">}</span>