aboutsummaryrefslogtreecommitdiff
path: root/debug/testlib.py
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2018-10-05 12:28:32 -0700
committerTim Newsome <tim@sifive.com>2018-10-05 12:28:32 -0700
commitacc87e14d9a6e4e6c3f019e79cb5c047162228c1 (patch)
tree9e3b5594e6f7b09422c39222842eb7029542be51 /debug/testlib.py
parent6ac2c6350757a07b4469f37eca61bf44854f41c6 (diff)
downloadriscv-tests-acc87e14d9a6e4e6c3f019e79cb5c047162228c1.zip
riscv-tests-acc87e14d9a6e4e6c3f019e79cb5c047162228c1.tar.gz
riscv-tests-acc87e14d9a6e4e6c3f019e79cb5c047162228c1.tar.bz2
Make HwWatchpoint test fail on incorrect result.hw_watchpoint
Also tiny cleanups, making pylint happy.
Diffstat (limited to 'debug/testlib.py')
-rw-r--r--debug/testlib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/debug/testlib.py b/debug/testlib.py
index 76f09f9..d278692 100644
--- a/debug/testlib.py
+++ b/debug/testlib.py
@@ -594,7 +594,7 @@ class Gdb(object):
return output
def swatch(self, expr):
- hstate = self.command("show can-use-hw-watchpoints")
+ self.command("show can-use-hw-watchpoints")
self.command("set can-use-hw-watchpoints 0")
output = self.command("watch %s" % expr, ops=5)
assert "not defined" not in output