[Lldb-commits] [lldb] r115517 - /lldb/trunk/test/load_unload/TestLoadUnload.py
Johnny Chen
johnny.chen at apple.com
Mon Oct 4 09:58:16 PDT 2010
Author: johnny
Date: Mon Oct 4 11:58:16 2010
New Revision: 115517
URL: http://llvm.org/viewvc/llvm-project?rev=115517&view=rev
Log:
Remove file:lineno from the expected substrings. Matching 'a_function, i.e.,
the {function.name}, is sufficient for this test case.
Plus added @expectedfailure decorator for a filed bug.
Modified:
lldb/trunk/test/load_unload/TestLoadUnload.py
Modified: lldb/trunk/test/load_unload/TestLoadUnload.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/load_unload/TestLoadUnload.py?rev=115517&r1=115516&r2=115517&view=diff
==============================================================================
--- lldb/trunk/test/load_unload/TestLoadUnload.py (original)
+++ lldb/trunk/test/load_unload/TestLoadUnload.py Mon Oct 4 11:58:16 2010
@@ -11,6 +11,8 @@
mydir = "load_unload"
+ # rdar://problem/8508987
+ @unittest2.expectedFailure
def test_load_unload(self):
"""Test breakpoint by name works correctly with dlopen'ing."""
@@ -30,25 +32,23 @@
self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
substrs = ['state is Stopped',
'a_function',
- 'a.c:14',
'stop reason = breakpoint'])
# The breakpoint should have a hit count of 1.
self.expect("breakpoint list", BREAKPOINT_HIT_ONCE,
substrs = [' resolved, hit count = 1'])
-# # Issue the 'contnue' command. We should stop agaian at a_function.
-# # The stop reason of the thread should be breakpoint and at a_function.
-# self.runCmd("continue")
-# self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
-# substrs = ['state is Stopped',
-# 'a_function',
-# 'a.c:14',
-# 'stop reason = breakpoint'])
-#
-# # The breakpoint should have a hit count of 2.
-# self.expect("breakpoint list", BREAKPOINT_HIT_ONCE,
-# substrs = [' resolved, hit count = 2'])
+ # Issue the 'contnue' command. We should stop agaian at a_function.
+ # The stop reason of the thread should be breakpoint and at a_function.
+ self.runCmd("continue")
+ self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
+ substrs = ['state is Stopped',
+ 'a_function',
+ 'stop reason = breakpoint'])
+
+ # The breakpoint should have a hit count of 2.
+ self.expect("breakpoint list", BREAKPOINT_HIT_ONCE,
+ substrs = [' resolved, hit count = 2'])
if __name__ == '__main__':
More information about the lldb-commits
mailing list