[Lldb-commits] [lldb] r116936 - /lldb/trunk/test/breakpoint_locations/TestBreakpointLocations.py

Johnny Chen johnny.chen at apple.com
Wed Oct 20 10:26:59 PDT 2010


Author: johnny
Date: Wed Oct 20 12:26:59 2010
New Revision: 116936

URL: http://llvm.org/viewvc/llvm-project?rev=116936&view=rev
Log:
Fix wrong test logic with regard to hit count and resolved status of disabled/enabled breakpoints.

Modified:
    lldb/trunk/test/breakpoint_locations/TestBreakpointLocations.py

Modified: lldb/trunk/test/breakpoint_locations/TestBreakpointLocations.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/breakpoint_locations/TestBreakpointLocations.py?rev=116936&r1=116935&r2=116936&view=diff
==============================================================================
--- lldb/trunk/test/breakpoint_locations/TestBreakpointLocations.py (original)
+++ lldb/trunk/test/breakpoint_locations/TestBreakpointLocations.py Wed Oct 20 12:26:59 2010
@@ -84,11 +84,11 @@
         self.expect("thread backtrace", STOPPED_DUE_TO_BREAKPOINT,
             substrs = ["stop reason = breakpoint 1."])
 
-        # At this point, the 3 locations should all have "hit count = 2".
-        self.expect("breakpoint list", "Expect all 3 breakpoints with hit count of 2",
-            patterns = ["1\.1: .+ resolved, hit count = 2 +Options: disabled",
-                        "1\.2: .+ resolved, hit count = 2",
-                        "1\.3: .+ resolved, hit count = 2"])
+        # At this point, 1.1 has a hit count of 0 and the other a hit count of 1".
+        self.expect("breakpoint list", "The breakpoints should report correct hit counts",
+            patterns = ["1\.1: .+ unresolved, hit count = 0 +Options: disabled",
+                        "1\.2: .+ resolved, hit count = 1",
+                        "1\.3: .+ resolved, hit count = 1"])
 
 
 if __name__ == '__main__':





More information about the lldb-commits mailing list