about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-09-05 11:14:25 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-09-05 11:14:25 -0700
commite214de81b8917745774469e64c1bf0791c263439 (patch)
treef1bc14350176c7aae022e7d2e7eba2a041144df7
parent198728134ef2c8f3fc8d1b489735568dced2c3dc (diff)
downloadmu-e214de81b8917745774469e64c1bf0791c263439.tar.gz
2152 - never warn about redefining main in tests
-rw-r--r--020run.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/020run.cc b/020run.cc
index 90ed29d8..a194b7ab 100644
--- a/020run.cc
+++ b/020run.cc
@@ -152,6 +152,7 @@ if (argc > 1) {
     load_permanently(argv[i]);
   }
   transform_all();
+  if (Run_tests) Recipe.erase(Recipe_ordinal[string("main")]);
 }
 
 :(before "End Main")