about summary refs log tree commit diff stats
path: root/002test.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2017-07-09 14:25:48 -0700
committerKartik K. Agaram <vc@akkartik.com>2017-07-09 14:25:48 -0700
commit6573fe1f1aa6d87c027d10429ded7e0162e52902 (patch)
treeddd110af3e987e49bb60ba05c16833c92d6d8901 /002test.cc
parent6ff9413c5dc624df6a33d7680a6667c27cd9352e (diff)
downloadmu-6573fe1f1aa6d87c027d10429ded7e0162e52902.tar.gz
3965 - get rid of the teardown() function
Instead of setup() and teardown() we'll just use a reset() function from
now on, which will bring the machine back to a good state before each
test or run, and also before exit (to avoid memory leaks).
Diffstat (limited to '002test.cc')
-rw-r--r--002test.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/002test.cc b/002test.cc
index 1f89b05c..0fa39bf1 100644
--- a/002test.cc
+++ b/002test.cc
@@ -76,11 +76,10 @@ void run_test(size_t i) {
     cerr << "no test " << i << '\n';
     return;
   }
-  setup();
+  reset();
   // End Test Setup
   (*Tests[i])();
   // End Test Teardown
-  teardown();
 }
 
 bool is_integer(const string& s) {