From 2a869e0c73053ac9c3628de4f5f0d41b5fda0aaf Mon Sep 17 00:00:00 2001 From: Tim Newsome Date: Fri, 10 Apr 2020 13:40:20 -0700 Subject: Make TooManyHwbp more thorough. (#272) Test the behavior described in https://github.com/riscv/riscv-openocd/issues/76. --- debug/gdbserver.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/debug/gdbserver.py b/debug/gdbserver.py index da671d3..ca5855a 100755 --- a/debug/gdbserver.py +++ b/debug/gdbserver.py @@ -615,9 +615,14 @@ class TooManyHwbp(DebugTest): output = self.gdb.c(checkOutput=False) assertIn("Cannot insert hardware breakpoint", output) + # There used to be a bug where this would fail if done twice in a row. + output = self.gdb.c(checkOutput=False) + assertIn("Cannot insert hardware breakpoint", output) # Clean up, otherwise the hardware breakpoints stay set and future # tests may fail. - self.gdb.command("D") + self.gdb.command("delete") + self.gdb.b("_exit") + self.exit() class Registers(DebugTest): def test(self): -- cgit v1.1