about summary refs log tree commit diff stats
path: root/cpp/002test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/002test.cc')
-rw-r--r--cpp/002test.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/cpp/002test.cc b/cpp/002test.cc
index fa91c0a7..3daa1aed 100644
--- a/cpp/002test.cc
+++ b/cpp/002test.cc
@@ -37,6 +37,9 @@ long Num_failures = 0;
     return;  /* Currently we stop at the very first failure. */ \
   }
 
+:(before "End Setup")
+Passed = true;
+
 :(before "End Commandline Parsing")
 if (argc > 1 && is_equal(argv[1], "test")) {
   Run_tests = true;  --argc;  ++argv;  // shift 'test' out of commandline args
@@ -69,7 +72,6 @@ void run_test(size_t i) {
     return;
   }
   setup();
-  Passed = true;
   // End Test Setup
   (*Tests[i])();
   teardown();