diff options
author | Tim Newsome <tim@sifive.com> | 2018-10-31 14:31:21 -0700 |
---|---|---|
committer | Tim Newsome <tim@sifive.com> | 2018-10-31 14:31:21 -0700 |
commit | b3c5d7a07f2a08d11f316c39d6cce5374cdcbfd3 (patch) | |
tree | 9b788b504722abefeb01d1cc3ae5b3c1f5543833 /debug/testlib.py | |
parent | ba5ead7a023a5b959bf0f51135ed0ab7cae15102 (diff) | |
download | riscv-tests-b3c5d7a07f2a08d11f316c39d6cce5374cdcbfd3.zip riscv-tests-b3c5d7a07f2a08d11f316c39d6cce5374cdcbfd3.tar.gz riscv-tests-b3c5d7a07f2a08d11f316c39d6cce5374cdcbfd3.tar.bz2 |
Fix remaining tests to work from flash:
TriggerDmode, ProgramHwWatchpoint, ProgramSwWatchpoint.
Diffstat (limited to 'debug/testlib.py')
-rw-r--r-- | debug/testlib.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/debug/testlib.py b/debug/testlib.py index fa79abe..184bc85 100644 --- a/debug/testlib.py +++ b/debug/testlib.py @@ -463,7 +463,7 @@ class Gdb(object): self.select_child(child) self.command(command) - def c(self, wait=True, async=False): + def c(self, wait=True, async=False, checkOutput=True): """ Dumb c command. In RTOS mode, gdb will resume all harts. @@ -477,7 +477,9 @@ class Gdb(object): ops = 10 if wait: output = self.command("c%s" % async, ops=ops) - assert "Continuing" in output + if checkOutput: + assert "Continuing" in output + assert "Could not insert hardware" not in output return output else: self.active_child.sendline("c%s" % async) @@ -902,6 +904,7 @@ class GdbTest(BaseTest): if not self.gdb: return self.gdb.interrupt() + self.gdb.command("info breakpoints") self.gdb.command("disassemble", ops=20) self.gdb.command("info registers all", ops=100) self.gdb.command("flush regs") |