[Lldb-commits] [lldb] r154942 - /lldb/branches/lldb-platform-work/test/functionalities/watchpoint/hello_watchpoint/TestMyFirstWatchpoint.py
Johnny Chen
johnny.chen at apple.com
Tue Apr 17 12:03:48 PDT 2012
Author: johnny
Date: Tue Apr 17 14:03:48 2012
New Revision: 154942
URL: http://llvm.org/viewvc/llvm-project?rev=154942&view=rev
Log:
Fix the test case to be more robust in terms to testing that a read action does not trigger a write-type watchpoint.
Modified:
lldb/branches/lldb-platform-work/test/functionalities/watchpoint/hello_watchpoint/TestMyFirstWatchpoint.py
Modified: lldb/branches/lldb-platform-work/test/functionalities/watchpoint/hello_watchpoint/TestMyFirstWatchpoint.py
URL: http://llvm.org/viewvc/llvm-project/lldb/branches/lldb-platform-work/test/functionalities/watchpoint/hello_watchpoint/TestMyFirstWatchpoint.py?rev=154942&r1=154941&r2=154942&view=diff
==============================================================================
--- lldb/branches/lldb-platform-work/test/functionalities/watchpoint/hello_watchpoint/TestMyFirstWatchpoint.py (original)
+++ lldb/branches/lldb-platform-work/test/functionalities/watchpoint/hello_watchpoint/TestMyFirstWatchpoint.py Tue Apr 17 14:03:48 2012
@@ -77,10 +77,12 @@
'stop reason = watchpoint'])
self.runCmd("process continue")
+
# Don't expect the read of 'global' to trigger a stop exception.
- # The process status should be 'exited'.
- self.expect("process status",
- substrs = ['exited'])
+ process = self.dbg.GetSelectedTarget().GetProcess()
+ if process.GetState() == lldb.eStateStopped:
+ import lldbutil
+ self.assertFalse(lldbutil.get_stopped_thread(process, lldb.eStopReasonWatchpoint))
# Use the '-v' option to do verbose listing of the watchpoint.
# The hit count should now be 1.
More information about the lldb-commits
mailing list