diff options
author | Johnny Chen <johnny.chen@apple.com> | 2011-09-22 18:04:58 +0000 |
---|---|---|
committer | Johnny Chen <johnny.chen@apple.com> | 2011-09-22 18:04:58 +0000 |
commit | 01acfa76010b8db2e77016c144963c4dd70f1392 (patch) | |
tree | fe22f45023e31aec97f774b0feed7b08bb49c50c /test | |
parent | 567e7f3ba16eb48cb9fd6a2f26f2f7269eb6983c (diff) | |
download | lldb-01acfa76010b8db2e77016c144963c4dd70f1392.tar.gz |
Add initial implementation of watchpoint commands for list, enable, disable, and delete.
Test cases to be added later.
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@140322 91177308-0d34-0410-b5e6-96231b3b80d8
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 |