Join TestTlsGlobal tests again and use the proper decorator

llvm-svn: 274490
This commit is contained in:
Pavel Labath 2016-07-04 09:27:53 +00:00
parent 4721a55e4d
commit abb79683bb
1 changed files with 2 additions and 12 deletions

View File

@ -27,18 +27,8 @@ 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.
@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):
@expectedFailureAll(bugnumber="llvm.org/pr28392", oslist=no_match(lldbplatformutil.getDarwinOSTriples()))
def test(self):
"""Test thread-local storage."""
self.build()
exe = os.path.join(os.getcwd(), "a.out")