aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2016-05-04 18:51:26 -0700
committerTim Newsome <tim@sifive.com>2016-05-23 12:12:12 -0700
commitdd233bc49946aa059b6ea9494b870d20076ce1b8 (patch)
treec873d001c46e7935258091b1a938da53d54bbfd6 /tests
parent6ef848928a5e2d72d9b0aed66f669b7b9a80b49a (diff)
downloadspike-dd233bc49946aa059b6ea9494b870d20076ce1b8.zip
spike-dd233bc49946aa059b6ea9494b870d20076ce1b8.tar.gz
spike-dd233bc49946aa059b6ea9494b870d20076ce1b8.tar.bz2
Single step appears to work.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/gdbserver.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/gdbserver.py b/tests/gdbserver.py
index 90ebbe9..c3c2eca 100755
--- a/tests/gdbserver.py
+++ b/tests/gdbserver.py
@@ -36,9 +36,10 @@ class DebugTest(unittest.TestCase):
def test_breakpoint(self):
self.gdb.command("b print_row")
# The breakpoint should be hit exactly 10 times.
- for _ in range(10):
+ for i in range(10):
output = self.gdb.command("c")
self.assertIn("Continuing", output)
+ self.assertIn("length=%d" % i, output)
self.assertIn("Breakpoint 1", output)
output = self.gdb.command("c")
self.assertIn("Continuing", output)