diff options
author | Tim Newsome <tim@sifive.com> | 2020-02-11 14:17:37 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-11 14:17:37 -0800 |
commit | 67af8d6beeaecfdcb05aea5013fba71484b3927f (patch) | |
tree | a2eeb1a6528b50a3c9d625b962f3b4a7355b8332 | |
parent | 0796441a53050f2dd92f7dbad47dfbe5a103d53d (diff) | |
download | riscv-tests-67af8d6beeaecfdcb05aea5013fba71484b3927f.zip riscv-tests-67af8d6beeaecfdcb05aea5013fba71484b3927f.tar.gz riscv-tests-67af8d6beeaecfdcb05aea5013fba71484b3927f.tar.bz2 |
Look for \bmain\b instead of ' main '. (#237)
-rwxr-xr-x | debug/gdbserver.py | 4 |
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]")) |