X-Git-Url: https://git.libre-soc.org/?p=riscv-tests.git;a=blobdiff_plain;f=debug%2Ftestlib.py;h=fb5bee33b1284b36ecafe918821a979ad1cf738c;hp=0a6c1856e373e3dac240a0c15f2e1a708bf556ea;hb=bd8f01b7942177911208fff916492ad4539638fb;hpb=e0ce10a4148d4087e46252584b85b2fff3a0dbd7 diff --git a/debug/testlib.py b/debug/testlib.py index 0a6c185..fb5bee3 100644 --- a/debug/testlib.py +++ b/debug/testlib.py @@ -549,6 +549,8 @@ class Gdb(object): output = self.command("load", ops=1000) assert "failed" not in output assert "Transfer rate" in output + output = self.command("compare-sections", ops=1000) + assert "MIS" not in output def b(self, location): output = self.command("b %s" % location, ops=5) @@ -852,6 +854,8 @@ class GdbTest(BaseTest): self.gdb.interrupt() self.gdb.command("disassemble", ops=20) self.gdb.command("info registers all", ops=100) + self.gdb.command("flush regs") + self.gdb.command("info threads", ops=100) def classTeardown(self): del self.gdb @@ -864,6 +868,7 @@ class GdbTest(BaseTest): if hart != self.hart: self.gdb.select_hart(hart) self.gdb.p("$pc=loop_forever") + self.gdb.select_hart(self.hart) class GdbSingleHartTest(GdbTest):