aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2022-03-03 09:59:05 -0800
committerGitHub <noreply@github.com>2022-03-03 09:59:05 -0800
commit6db14247008faba2156bb2e4048667d7619b43da (patch)
treeb96da929883ea6caa213b6d28788730d069a7d4d
parentf0c75d35e585147043f3b1d879a24e42f4f50c03 (diff)
downloadriscv-tests-6db14247008faba2156bb2e4048667d7619b43da.zip
riscv-tests-6db14247008faba2156bb2e4048667d7619b43da.tar.gz
riscv-tests-6db14247008faba2156bb2e4048667d7619b43da.tar.bz2
Add assert to MemorySampleTest. (#370)
Now it will give slightly more helpful output if it fails.
-rwxr-xr-xdebug/gdbserver.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/debug/gdbserver.py b/debug/gdbserver.py
index 5cf9b8e..c6b7641 100755
--- a/debug/gdbserver.py
+++ b/debug/gdbserver.py
@@ -834,6 +834,7 @@ class MemorySampleTest(DebugTest):
else:
end = (timestamp, total_samples)
else:
+ assertRegex(line, r"^0x[0-f]+: 0x[0-f]+$")
address, value = line.split(': ')
address = int(address, 16)
if address == check_addr: