about summary refs log tree commit diff stats
path: root/cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp')
-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 << ".";
 }