about summary refs log tree commit diff stats
path: root/cpp/010vm
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-04-08 00:32:23 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-04-08 00:32:23 -0700
commit2b7a7498f98d1696adc2c6949f8d53f7fa18109e (patch)
treed42908812534d3f00528e137877fdeb5dd872772 /cpp/010vm
parent052535fd401bf3521efaf9e5775ad21ef1ec9eaa (diff)
downloadmu-2b7a7498f98d1696adc2c6949f8d53f7fa18109e.tar.gz
1034 - more test isolation
The layers are a mess now, but we'll take care of that later.
Diffstat (limited to 'cpp/010vm')
-rw-r--r--cpp/010vm2
1 files changed, 2 insertions, 0 deletions
diff --git a/cpp/010vm b/cpp/010vm
index 931ae673..5d3ddd53 100644
--- a/cpp/010vm
+++ b/cpp/010vm
@@ -141,6 +141,8 @@ void setup_recipes() {
   load("core.mu");
   assert(Next_recipe_number < 100);
   Next_recipe_number = 100;
+  recipes_added_by_test.clear();  // Freeze everything added so far.
+  delete Trace_stream;  Trace_stream = new trace_stream;
 :(before "End Setup")
   Next_recipe_number = 100;  // consistent new numbers for each test