Properly clean up spike.
[riscv-isa-sim.git] / tests / gdbserver-smoke.py
index 9cdac06289d1b14702f8dc6f2a5aae80356a065c..770e77ad1e9c6621642e00811efdb1092d4a996c 100755 (executable)
@@ -16,8 +16,9 @@ class SmokeTest(unittest.TestCase):
         self.gdb.command("target extended-remote localhost:9824")
         self.gdb.command("p i=0");
 
-    def cleanUp(self):
+    def tearDown(self):
         self.spike.kill()
+        self.spike.wait()
 
     def test_turbostep(self):
         """Single step until the program exits. TODO"""