summaryrefslogtreecommitdiffstats
path: root/lldb/test/python_api/target/TestTargetAPI.py
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/test/python_api/target/TestTargetAPI.py')
-rw-r--r--lldb/test/python_api/target/TestTargetAPI.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/lldb/test/python_api/target/TestTargetAPI.py b/lldb/test/python_api/target/TestTargetAPI.py
index 37c019228f1..2494c0f0c23 100644
--- a/lldb/test/python_api/target/TestTargetAPI.py
+++ b/lldb/test/python_api/target/TestTargetAPI.py
@@ -12,7 +12,7 @@ class TargetAPITestCase(TestBase):
mydir = TestBase.compute_mydir(__file__)
- @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
+ @skipUnlessDarwin
@python_api_test
@dsym_test
def test_find_global_variables_with_dsym(self):
@@ -38,7 +38,7 @@ class TargetAPITestCase(TestBase):
self.setTearDownCleanup(dictionary=d)
self.find_global_variables('b.out')
- @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
+ @skipUnlessDarwin
@python_api_test
@dsym_test
def test_find_functions_with_dsym(self):
@@ -57,7 +57,7 @@ class TargetAPITestCase(TestBase):
self.setTearDownCleanup(dictionary=d)
self.find_functions('b.out')
- @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
+ @skipUnlessDarwin
@python_api_test
@dsym_test
def test_get_description_with_dsym(self):
@@ -72,7 +72,7 @@ class TargetAPITestCase(TestBase):
self.buildDwarf()
self.get_description()
- @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
+ @skipUnlessDarwin
@python_api_test
@dsym_test
@expectedFailureDarwin("llvm.org/pr20273")
@@ -89,7 +89,7 @@ class TargetAPITestCase(TestBase):
self.buildDwarf()
self.launch_new_process_and_redirect_stdout()
- @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
+ @skipUnlessDarwin
@python_api_test
@dsym_test
def test_resolve_symbol_context_with_address_with_dsym(self):
@@ -104,7 +104,7 @@ class TargetAPITestCase(TestBase):
self.buildDwarf()
self.resolve_symbol_context_with_address()
- @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
+ @skipUnlessDarwin
@python_api_test
@dsym_test
def test_get_platform_with_dsym(self):
@@ -125,7 +125,7 @@ class TargetAPITestCase(TestBase):
platform = target.platform
self.assertTrue(platform, VALID_PLATFORM)
- @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
+ @skipUnlessDarwin
@python_api_test
@dsym_test
def test_get_data_byte_size_with_dsym(self):
@@ -144,7 +144,7 @@ class TargetAPITestCase(TestBase):
target = self.create_simple_target('b.out')
self.assertEquals(target.data_byte_size, 1)
- @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
+ @skipUnlessDarwin
@python_api_test
@dsym_test
def test_get_code_byte_size_with_dsym(self):
@@ -163,7 +163,7 @@ class TargetAPITestCase(TestBase):
target = self.create_simple_target('b.out')
self.assertEquals(target.code_byte_size, 1)
- @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
+ @skipUnlessDarwin
@python_api_test
@dsym_test
def test_resolve_file_address_with_dsym(self):
@@ -182,7 +182,7 @@ class TargetAPITestCase(TestBase):
target = self.create_simple_target('b.out')
self.resolve_file_address(target)
- @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
+ @skipUnlessDarwin
@python_api_test
@dsym_test
def test_read_memory_with_dsym(self):
OpenPOWER on IntegriCloud