diff options
author | Tim Newsome <tim@sifive.com> | 2016-03-23 17:42:17 -0700 |
---|---|---|
committer | Tim Newsome <tim@sifive.com> | 2016-05-23 12:12:10 -0700 |
commit | d6d23ae8479c246f801e88a9d8401a7f6b01b4e7 (patch) | |
tree | 2428e7daf555a511cc79419036ab7c8b01d22f43 /tests/ebreak.py | |
parent | 8571c8791ab141c70f7208acaa1a3edb1ce45a75 (diff) | |
download | spike-d6d23ae8479c246f801e88a9d8401a7f6b01b4e7.zip spike-d6d23ae8479c246f801e88a9d8401a7f6b01b4e7.tar.gz spike-d6d23ae8479c246f801e88a9d8401a7f6b01b4e7.tar.bz2 |
Only halt on ebreak if a debugger is attached.
Diffstat (limited to 'tests/ebreak.py')
-rwxr-xr-x | tests/ebreak.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/tests/ebreak.py b/tests/ebreak.py index 6c3ffdb..4b41f7d 100755 --- a/tests/ebreak.py +++ b/tests/ebreak.py @@ -10,12 +10,17 @@ class EbreakTest(unittest.TestCase): def setUp(self): self.binary = testlib.compile("ebreak.s") - def test_ebreak(self): - """Make sure that we can run past ebreak without halting when a - debugger isn't attached.""" + def test_noport(self): + """Make sure that we can run past ebreak when --gdb-port isn't used.""" spike = testlib.spike(self.binary, with_gdb=False, timeout=10) result = spike.wait() self.assertEqual(result, 0) + def test_nogdb(self): + """Make sure that we can run past ebreak when gdb isn't attached.""" + spike, port = testlib.spike(self.binary, timeout=10) + result = spike.wait() + self.assertEqual(result, 0) + if __name__ == '__main__': unittest.main() |