summaryrefslogtreecommitdiffstats
path: root/lldb/test/api/multithreaded/TestMultithreaded.py
diff options
context:
space:
mode:
authorVince Harron <vince@nethacker.com>2015-05-04 00:17:53 +0000
committerVince Harron <vince@nethacker.com>2015-05-04 00:17:53 +0000
commit026137628fa1ddadf9cf594d34b2f3392fb36b10 (patch)
treed27f7cbaa6d09fade36c89af7d67331923b46e2f /lldb/test/api/multithreaded/TestMultithreaded.py
parent8983031b5edd81f67504d81a7d693e5ee79baee6 (diff)
downloadbcm5719-llvm-026137628fa1ddadf9cf594d34b2f3392fb36b10.tar.gz
bcm5719-llvm-026137628fa1ddadf9cf594d34b2f3392fb36b10.zip
TestMultithreaded improvements
These tests link against host lldb API. Compiler's target triple must match liblldb triple. Instead of naively skipping i386, I added a check of the liblldb arch against the compiler target arch. This is useful for 32 bit API builds (planned for Windows) Since remote is disabled, we can assume the os is the same. Also, removed skipIfLinuxClang because it's passing llvm-svn: 236396
Diffstat (limited to 'lldb/test/api/multithreaded/TestMultithreaded.py')
-rw-r--r--lldb/test/api/multithreaded/TestMultithreaded.py23
1 files changed, 11 insertions, 12 deletions
diff --git a/lldb/test/api/multithreaded/TestMultithreaded.py b/lldb/test/api/multithreaded/TestMultithreaded.py
index fcf5639817c..72871b37377 100644
--- a/lldb/test/api/multithreaded/TestMultithreaded.py
+++ b/lldb/test/api/multithreaded/TestMultithreaded.py
@@ -15,23 +15,18 @@ class SBBreakpointCallbackCase(TestBase):
self.lib_dir = os.environ["LLDB_LIB_DIR"]
self.implib_dir = os.environ["LLDB_IMPLIB_DIR"]
self.inferior = 'inferior_program'
- if self.getArchitecture() != "i386":
- self.buildProgram('inferior.cpp', self.inferior)
- self.addTearDownHook(lambda: os.remove(self.inferior))
+ if self.getLldbArchitecture() == self.getArchitecture():
+ self.buildProgram('inferior.cpp', self.inferior)
+ self.addTearDownHook(lambda: os.remove(self.inferior))
- @unittest2.expectedFailure("llvm.org/pr16000: SBBreakpoint.SetCallback() does nothing")
- @skipIfi386
@skipIfRemote
- @skipIfLinuxClang # buildbot clang version unable to use libstdc++ with c++11
@skipIfNoSBHeaders
def test_breakpoint_callback(self):
"""Test the that SBBreakpoint callback is invoked when a breakpoint is hit. """
self.build_and_test('driver.cpp test_breakpoint_callback.cpp',
'test_breakpoint_callback')
- @skipIfi386
@skipIfRemote
- @skipIfLinuxClang # buildbot clang version unable to use libstdc++ with c++11
@skipIfNoSBHeaders
@expectedFailureAll("llvm.org/pr23139", oslist=["linux"], compiler="gcc", compiler_version=[">=","4.9"], archs=["x86_64"])
def test_sb_api_listener_event_description(self):
@@ -40,9 +35,7 @@ class SBBreakpointCallbackCase(TestBase):
'test_listener_event_description')
pass
- @skipIfi386
@skipIfRemote
- @skipIfLinuxClang # buildbot clang version unable to use libstdc++ with c++11
@skipIfNoSBHeaders
@expectedFailureAll("llvm.org/pr23139", oslist=["linux"], compiler="gcc", compiler_version=[">=","4.9"], archs=["x86_64"])
def test_sb_api_listener_event_process_state(self):
@@ -54,9 +47,7 @@ class SBBreakpointCallbackCase(TestBase):
pass
- @skipIfi386
@skipIfRemote
- @skipIfLinuxClang # buildbot clang version unable to use libstdc++ with c++11
@skipIfNoSBHeaders
@expectedFailureAll("llvm.org/pr23139", oslist=["linux"], compiler="gcc", compiler_version=[">=","4.9"], archs=["x86_64"])
def test_sb_api_listener_resume(self):
@@ -67,6 +58,14 @@ class SBBreakpointCallbackCase(TestBase):
def build_and_test(self, sources, test_name, args = None):
""" Build LLDB test from sources, and run expecting 0 exit code """
+
+ # These tests link against host lldb API.
+ # Compiler's target triple must match liblldb triple
+ # because remote is disabled, we can assume that the os is the same
+ # still need to check architecture
+ if self.getLldbArchitecture() != self.getArchitecture():
+ self.skipTest("This test is only run if the target arch is the same as the lldb binary arch")
+
self.buildDriver(sources, test_name)
self.addTearDownHook(lambda: os.remove(test_name))
OpenPOWER on IntegriCloud