about summary refs log tree commit diff stats
path: root/cpp/002test.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-05-04 10:31:52 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-05-04 10:31:52 -0700
commitde49fb426aa44984d308f5856ec836360ba0bdce (patch)
tree5522203f99d3d387439c4cd0385e0375ccd8ed0d /cpp/002test.cc
parenta11d9c4a3375906bf8ae1117c6043776d2f08d17 (diff)
downloadmu-de49fb426aa44984d308f5856ec836360ba0bdce.tar.gz
1248 - syntax for using screens in scenarios
Still ugly as hell.
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();