about summary refs log tree commit diff stats
path: root/101run_sandboxed.cc
diff options
context:
space:
mode:
Diffstat (limited to '101run_sandboxed.cc')
-rw-r--r--101run_sandboxed.cc12
1 files changed, 1 insertions, 11 deletions
diff --git a/101run_sandboxed.cc b/101run_sandboxed.cc
index 46331b49..f15e4d2a 100644
--- a/101run_sandboxed.cc
+++ b/101run_sandboxed.cc
@@ -472,17 +472,7 @@ case RELOAD: {
 }
 :(before "End Primitive Recipe Implementations")
 case RELOAD: {
-  // conundrum: need to support repeated reloads of the same code, but not
-  // wipe out state for the current test
-  // hacky solution: subset of restore_snapshots() without restoring recipes {
-  // can't yet define containers in a test that runs 'reload'
-  Type_ordinal = Type_ordinal_snapshot;
-  Type = Type_snapshot;
-  // can't yet create new specializations of shape-shifting recipes in a test
-  // that runs 'reload'
-  Recipe_variants = Recipe_variants_snapshot;
-  Name = Name_snapshot;
-  // }
+  restore_non_recipe_snapshots();
   string code = read_mu_text(ingredients.at(0).at(0));
   run_code_begin(/*should_stash_snapshots*/false);
   routine* save_current_routine = Current_routine;