aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2020-02-11 14:17:37 -0800
committerGitHub <noreply@github.com>2020-02-11 14:17:37 -0800
commit67af8d6beeaecfdcb05aea5013fba71484b3927f (patch)
treea2eeb1a6528b50a3c9d625b962f3b4a7355b8332
parent0796441a53050f2dd92f7dbad47dfbe5a103d53d (diff)
downloadriscv-tests-67af8d6beeaecfdcb05aea5013fba71484b3927f.zip
riscv-tests-67af8d6beeaecfdcb05aea5013fba71484b3927f.tar.gz
riscv-tests-67af8d6beeaecfdcb05aea5013fba71484b3927f.tar.bz2
Look for \bmain\b instead of ' main '. (#237)
-rwxr-xr-xdebug/gdbserver.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/debug/gdbserver.py b/debug/gdbserver.py
index cc8f617..4840d66 100755
--- a/debug/gdbserver.py
+++ b/debug/gdbserver.py
@@ -1288,14 +1288,14 @@ class TranslateTest(GdbTest):
self.gdb.load()
self.gdb.b("main")
output = self.gdb.c()
- assertIn(" main ", output)
+ assertRegex(output, r"\bmain\b")
def test_translation(self):
self.gdb.b("error")
self.gdb.b("handle_trap")
self.gdb.b("main:active")
output = self.gdb.c()
- assertIn(" main ", output)
+ assertRegex(output, r"\bmain\b")
assertEqual(0xdeadbeef, self.gdb.p("physical[0]"))
assertEqual(0x55667788, self.gdb.p("physical[1]"))
assertEqual(0xdeadbeef, self.gdb.p("virtual[0]"))