diff options
author | Robert Flack <flackr@gmail.com> | 2015-03-30 14:12:17 +0000 |
---|---|---|
committer | Robert Flack <flackr@gmail.com> | 2015-03-30 14:12:17 +0000 |
commit | 13c7ad9cd245fca52773ac47e53da1cb46b38320 (patch) | |
tree | 98bf6753d53607c6ddbc1faf7ea6d2d419b1a22b /lldb/test/python_api/target/TestTargetAPI.py | |
parent | ab6216d050a5c3191a9f0db8e2dde426a5876f9d (diff) | |
download | bcm5719-llvm-13c7ad9cd245fca52773ac47e53da1cb46b38320.tar.gz bcm5719-llvm-13c7ad9cd245fca52773ac47e53da1cb46b38320.zip |
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
Diffstat (limited to 'lldb/test/python_api/target/TestTargetAPI.py')
-rw-r--r-- | lldb/test/python_api/target/TestTargetAPI.py | 20 |
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): |