Replace sys.platform skips in tests with @skip decorators which check against remote platform.

Adds @skipIfPlatform and @skipUnlessPlatform decorators which will skip if /
unless the target platform is in the provided platform list.

Test Plan:
ninja check-lldb shows no regressions.
When running cross platform, tests which cannot run on the target platform are
skipped.

Differential Revision: http://reviews.llvm.org/D8665

llvm-svn: 233547
This commit is contained in:
Robert Flack
2015-03-30 14:12:17 +00:00
parent ab6216d050
commit 13c7ad9cd2
259 changed files with 534 additions and 545 deletions

View File

@@ -12,7 +12,7 @@ class ProcessAPITestCase(TestBase):
mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@skipUnlessDarwin
@python_api_test
@dsym_test
def test_read_memory_with_dsym(self):
@@ -27,7 +27,7 @@ class ProcessAPITestCase(TestBase):
self.buildDwarf()
self.read_memory()
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@skipUnlessDarwin
@python_api_test
@dsym_test
def test_write_memory_with_dsym(self):
@@ -42,7 +42,7 @@ class ProcessAPITestCase(TestBase):
self.buildDwarf()
self.write_memory()
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@skipUnlessDarwin
@python_api_test
@dsym_test
def test_access_my_int_with_dsym(self):