summaryrefslogtreecommitdiffstats
path: root/lldb/test/python_api/thread
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-08-19 00:54:27 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-08-19 00:54:27 +0000
commit31963cea0ac25b2449f6e3ee88f9020b203cab7c (patch)
tree49fecb058cef15106ab925ef5e173add334b84ff /lldb/test/python_api/thread
parent9eb77bf6151ea278c7afbb3e370781f34a8ba5cc (diff)
downloadbcm5719-llvm-31963cea0ac25b2449f6e3ee88f9020b203cab7c.tar.gz
bcm5719-llvm-31963cea0ac25b2449f6e3ee88f9020b203cab7c.zip
Add a decorator for marking clang only expectedFailure. Use it for the test_step_over_3_times_with_dsym/dwarf()
test cases in TestThreadAPI.py by decorating it with @expectedFailureClang. Example: @expectedFailureClang @python_api_test def test_step_over_3_times_with_dwarf(self): """Test Python SBThread.StepOver() API.""" # We build a different executable than the default buildDwarf() does. d = {'CXX_SOURCES': 'main2.cpp', 'EXE': self.exe_name} self.buildDwarf(dictionary=d) self.setTearDownCleanup(dictionary=d) self.step_over_3_times(self.exe_name) llvm-svn: 138019
Diffstat (limited to 'lldb/test/python_api/thread')
-rw-r--r--lldb/test/python_api/thread/TestThreadAPI.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/test/python_api/thread/TestThreadAPI.py b/lldb/test/python_api/thread/TestThreadAPI.py
index 3dbc61f0dfe..59244694951 100644
--- a/lldb/test/python_api/thread/TestThreadAPI.py
+++ b/lldb/test/python_api/thread/TestThreadAPI.py
@@ -77,6 +77,7 @@ class ThreadAPITestCase(TestBase):
self.step_out_of_malloc_into_function_b(self.exe_name)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
+ @expectedFailureClang
@python_api_test
def test_step_over_3_times_with_dsym(self):
"""Test Python SBThread.StepOver() API."""
@@ -86,6 +87,7 @@ class ThreadAPITestCase(TestBase):
self.setTearDownCleanup(dictionary=d)
self.step_over_3_times(self.exe_name)
+ @expectedFailureClang
@python_api_test
def test_step_over_3_times_with_dwarf(self):
"""Test Python SBThread.StepOver() API."""
@@ -221,6 +223,8 @@ class ThreadAPITestCase(TestBase):
frame0 = thread.GetFrameAtIndex(0)
lineEntry = frame0.GetLineEntry()
self.assertTrue(thread.GetStopReason() == lldb.eStopReasonPlanComplete)
+ # Expected failure with clang as the compiler.
+ # rdar://problem/9223880
self.assertTrue(lineEntry.GetLine() == self.after_3_step_overs)
def run_to_address(self, exe_name):
OpenPOWER on IntegriCloud