about summary refs log tree commit diff stats
path: root/050scenario.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-06-22 21:16:31 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-06-22 21:16:31 -0700
commit2c7e84c2bc3abd87090bd8f73ce5d6ec8ce19c9e (patch)
treec97203f0d8a64a38293f4b06c35970c30d6f98fa /050scenario.cc
parentc49efefc235e2cf91a44f4459b67ad780dd3bb1f (diff)
downloadmu-2c7e84c2bc3abd87090bd8f73ce5d6ec8ce19c9e.tar.gz
1620
chessboard finally passing all its tests. What made this hard was that
for some reason one of the background routines in the main chessboard
test wasn't terminating like it used to. And so it was polluting *later*
tests. Just clean up that source of contamination for now. Later we'll
think about routine termination.
Diffstat (limited to '050scenario.cc')
-rw-r--r--050scenario.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/050scenario.cc b/050scenario.cc
index fd59bf44..4a2384bf 100644
--- a/050scenario.cc
+++ b/050scenario.cc
@@ -132,14 +132,16 @@ const scenario* Current_scenario = NULL;
 void run_mu_scenario(const scenario& s) {
   Current_scenario = &s;
   bool not_already_inside_test = !Trace_stream;
-//?   cerr << s.name << '\n'; //? 1
+//?   cerr << s.name << '\n'; //? 3
   if (not_already_inside_test) {
     Trace_file = s.name;
     Trace_stream = new trace_stream;
     setup();
   }
 //?   cerr << '^' << s.to_run << "$\n"; //? 4
+  assert(Routines.empty());
   run("recipe "+s.name+" [ " + s.to_run + " ]");
+//?   cerr << s.name << " done\n"; //? 1
   if (not_already_inside_test && Trace_stream) {
     teardown();
     ofstream fout((Trace_dir+Trace_file).c_str());