about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--072scheduler.cc2
-rw-r--r--cannot_write_tests_for1
2 files changed, 3 insertions, 0 deletions
diff --git a/072scheduler.cc b/072scheduler.cc
index 46be1e6b..625632a4 100644
--- a/072scheduler.cc
+++ b/072scheduler.cc
@@ -132,6 +132,8 @@ void run_main(int argc, char* argv[]) {
   for (int i = 1;  i < argc;  ++i) {
     vector<double> arg;
     arg.push_back(new_mu_text(argv[i]));
+    assert(get(Memory, arg.back()) == 0);
+    put(Memory, arg.back(), 1);  // update refcount
     current_call().ingredient_atoms.push_back(arg);
   }
   run(main_routine);
diff --git a/cannot_write_tests_for b/cannot_write_tests_for
index 23562574..01b5cbe8 100644
--- a/cannot_write_tests_for
+++ b/cannot_write_tests_for
@@ -1,3 +1,4 @@
+0. main's ingredients
 1. assertion failures or errors inside scenarios
 2. screen background color
 3. has-more-events?