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.

llvm-svn: 115517
This commit is contained in:
Johnny Chen 2010-10-04 16:58:16 +00:00
parent 9fbc680c5e
commit 262d619be7
1 changed files with 13 additions and 13 deletions

View File

@ -11,6 +11,8 @@ class LoadUnloadTestCase(TestBase):
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 @@ class LoadUnloadTestCase(TestBase):
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__':