diff options
author | Greg Clayton <gclayton@apple.com> | 2016-07-01 22:33:13 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2016-07-01 22:33:13 +0000 |
commit | 591ff8376bbf3ee0cc6f6006300878ae96475a49 (patch) | |
tree | 6698d2a9a1d30fab0c39721995e5896f4d937ea0 /lldb/packages/Python/lldbsuite/test | |
parent | ebe8cf55ac975e092c4fff131346b304afeada72 (diff) | |
download | bcm5719-llvm-591ff8376bbf3ee0cc6f6006300878ae96475a49.tar.gz bcm5719-llvm-591ff8376bbf3ee0cc6f6006300878ae96475a49.zip |
Fixed thread local storage test case to run normally with no expected fail for Darwin, always skip on windows, and expected fail for all other OSs while mentioning the new bug I filed to track fixing TLS variables: https://llvm.org/bugs/show_bug.cgi?id=28392
llvm-svn: 274393
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/lang/c/tls_globals/TestTlsGlobals.py | 14 |
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") |