about summary refs log tree commit diff stats
path: root/cpp/001test
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/001test')
-rw-r--r--cpp/001test10
1 files changed, 5 insertions, 5 deletions
diff --git a/cpp/001test b/cpp/001test
index ed10e97e..32014689 100644
--- a/cpp/001test
+++ b/cpp/001test
@@ -39,11 +39,11 @@ long Num_failures = 0;
     return; \
   }
 
-:(after "Commandline Options")
-  if (is_equal(argv[1], "test")) {
-    run_tests();
-    return 0;
-  }
+:(before "End Main")
+if (argc > 1 && is_equal(argv[1], "test")) {
+  run_tests();
+  return 0;
+}
 
 :(code)
 void run_tests() {