diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/functionalities/watchpoint/hello_watchpoint/TestMyFirstWatchpoint.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/functionalities/watchpoint/hello_watchpoint/TestMyFirstWatchpoint.py b/test/functionalities/watchpoint/hello_watchpoint/TestMyFirstWatchpoint.py index 4d4d42f57..5cb8eeb2c 100644 --- a/test/functionalities/watchpoint/hello_watchpoint/TestMyFirstWatchpoint.py +++ b/test/functionalities/watchpoint/hello_watchpoint/TestMyFirstWatchpoint.py @@ -62,6 +62,11 @@ class HelloWatchpointTestCase(TestBase): substrs = ['Watchpoint created', 'size = 4', 'type = w', '%s:%d' % (self.source, self.decl)]) + # Use the '-v' option to do verbose listing of the watchpoint. + # The hit count should be 0 initially. + self.expect("watchpoint list -v", + substrs = ['hit_count = 0']) + self.runCmd("process continue") # We should be stopped again due to the watchpoint (write type), but @@ -76,6 +81,11 @@ class HelloWatchpointTestCase(TestBase): self.expect("process status", substrs = ['exited']) + # Use the '-v' option to do verbose listing of the watchpoint. + # The hit count should now be 1. + self.expect("watchpoint list -v", + substrs = ['hit_count = 1']) + if __name__ == '__main__': import atexit |