about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-04-24 21:37:36 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-04-24 21:37:36 -0700
commitfb4836dc0f9dc84afa0b133c4e6ab1ad61653961 (patch)
treedd0afc6ffba375f756157895876c9eeee2af29b5
parente26a1c859352421eaa7232987739ed5e8c79ce3f (diff)
downloadmu-fb4836dc0f9dc84afa0b133c4e6ab1ad61653961.tar.gz
1183
-rw-r--r--cpp/000organization4
-rw-r--r--cpp/002test1
-rw-r--r--cpp/020run1
-rw-r--r--cpp/050scenario1
4 files changed, 7 insertions, 0 deletions
diff --git a/cpp/000organization b/cpp/000organization
index c325c275..964180d4 100644
--- a/cpp/000organization
+++ b/cpp/000organization
@@ -113,5 +113,9 @@ void setup() {
   // End Setup
 }
 
+void teardown() {
+  // End Teardown
+}
+
 //: Without directives or with the :(code) directive, lines get added at the
 //: end.
diff --git a/cpp/002test b/cpp/002test
index 465f213f..fa91c0a7 100644
--- a/cpp/002test
+++ b/cpp/002test
@@ -72,6 +72,7 @@ void run_test(size_t i) {
   Passed = true;
   // End Test Setup
   (*Tests[i])();
+  teardown();
   if (Passed) cerr << ".";
 }
 
diff --git a/cpp/020run b/cpp/020run
index 2d5d6228..178ff506 100644
--- a/cpp/020run
+++ b/cpp/020run
@@ -110,6 +110,7 @@ if (!Run_tests) {
 //?   Trace_stream->dump_layer = "all"; //? 1
   if (r) run(r);
   dump_memory();
+  teardown();
 }
 
 :(code)
diff --git a/cpp/050scenario b/cpp/050scenario
index 8a4cf869..3bffe992 100644
--- a/cpp/050scenario
+++ b/cpp/050scenario
@@ -43,6 +43,7 @@ void run_mu_test(size_t i) {
     }
   }
   // End Scenario Checks
+  teardown();
   if (Passed) cerr << ".";
 }