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/lang/cpp/class_static/TestStaticVariables.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/lang/cpp/class_static/TestStaticVariables.py')
| -rw-r--r-- | lldb/test/lang/cpp/class_static/TestStaticVariables.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/test/lang/cpp/class_static/TestStaticVariables.py b/lldb/test/lang/cpp/class_static/TestStaticVariables.py index fad69a2d13c..c2d2024ef8e 100644 --- a/lldb/test/lang/cpp/class_static/TestStaticVariables.py +++ b/lldb/test/lang/cpp/class_static/TestStaticVariables.py @@ -13,7 +13,7 @@ class StaticVariableTestCase(TestBase): mydir = TestBase.compute_mydir(__file__) failing_compilers = ['clang', 'gcc'] - @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin") + @skipUnlessDarwin @dsym_test def test_with_dsym_and_run_command(self): """Test that file and class static variables display correctly.""" @@ -26,7 +26,7 @@ class StaticVariableTestCase(TestBase): self.buildDwarf() self.static_variable_commands() - @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin") + @skipUnlessDarwin @expectedFailureClang(9980907) @expectedFailureGcc(9980907) @python_api_test |

