forked from OSchip/llvm-project
Join TestTlsGlobal tests again and use the proper decorator
llvm-svn: 274490
This commit is contained in:
parent
4721a55e4d
commit
abb79683bb
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue