summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
-rw-r--r--lldb/packages/Python/lldbsuite/test/lang/c/tls_globals/TestTlsGlobals.py14
1 files changed, 12 insertions, 2 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/lang/c/tls_globals/TestTlsGlobals.py b/lldb/packages/Python/lldbsuite/test/lang/c/tls_globals/TestTlsGlobals.py
index 9a5ff555c1d..3aadbc8d7fa 100644
--- a/lldb/packages/Python/lldbsuite/test/lang/c/tls_globals/TestTlsGlobals.py
+++ b/lldb/packages/Python/lldbsuite/test/lang/c/tls_globals/TestTlsGlobals.py
@@ -27,8 +27,18 @@ class TlsGlobalTestCase(TestBase):
self.addTearDownHook(lambda: self.runCmd("settings remove target.env-vars " + self.dylibPath))
@skipIfWindows # TLS works differently on Windows, this would need to be implemented separately.
- @unittest2.expectedFailure("now works on Darwin, but not linux")
- def test(self):
+ @skipIfDarwin # Darwin has its own test below and we don't want it to expected fail with decorator below
+ @unittest2.expectedFailure("llvm.org/pr28392")
+ def test_non_darwin(self):
+ '''Mark as expected fail for all except Darwin or Windows'''
+ self.run_test()
+
+ @skipUnlessDarwin
+ def test_darwin(self):
+ '''Always run on darwin with no expected fail'''
+ self.run_test()
+
+ def run_test(self):
"""Test thread-local storage."""
self.build()
exe = os.path.join(os.getcwd(), "a.out")
OpenPOWER on IntegriCloud