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.
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@115517 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/load_unload/TestLoadUnload.py b/test/load_unload/TestLoadUnload.py
index 5e2928b..d690dc3 100644
--- a/test/load_unload/TestLoadUnload.py
+++ b/test/load_unload/TestLoadUnload.py
@@ -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__':