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/process | |
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/process')
-rw-r--r-- | lldb/test/python_api/process/TestProcessAPI.py | 6 | ||||
-rw-r--r-- | lldb/test/python_api/process/io/TestProcessIO.py | 20 |
2 files changed, 13 insertions, 13 deletions
diff --git a/lldb/test/python_api/process/TestProcessAPI.py b/lldb/test/python_api/process/TestProcessAPI.py index 6ce4d0b7852..6bc255abfa6 100644 --- a/lldb/test/python_api/process/TestProcessAPI.py +++ b/lldb/test/python_api/process/TestProcessAPI.py @@ -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): diff --git a/lldb/test/python_api/process/io/TestProcessIO.py b/lldb/test/python_api/process/io/TestProcessIO.py index 8181a94cfc2..66ac0bdb0d8 100644 --- a/lldb/test/python_api/process/io/TestProcessIO.py +++ b/lldb/test/python_api/process/io/TestProcessIO.py @@ -10,7 +10,7 @@ class ProcessIOTestCase(TestBase): mydir = TestBase.compute_mydir(__file__) - @unittest2.skipUnless(sys.platform.startswith("darwin"), "dsym requires Darwin") + @skipUnlessDarwin @python_api_test @dsym_test def test_stdin_by_api_with_dsym(self): @@ -18,7 +18,7 @@ class ProcessIOTestCase(TestBase): self.buildDsym() self.do_stdin_by_api() - @unittest2.skipIf(sys.platform.startswith("win32"), "stdio manipulation unsupported on Windows") + @skipIfWindows # stdio manipulation unsupported on Windows @python_api_test @dwarf_test def test_stdin_by_api_with_dwarf(self): @@ -26,7 +26,7 @@ class ProcessIOTestCase(TestBase): self.buildDwarf() self.do_stdin_by_api() - @unittest2.skipUnless(sys.platform.startswith("darwin"), "dsym requires Darwin") + @skipUnlessDarwin @python_api_test @dsym_test def test_stdin_redirection_with_dsym(self): @@ -34,7 +34,7 @@ class ProcessIOTestCase(TestBase): self.buildDsym() self.do_stdin_redirection() - @unittest2.skipIf(sys.platform.startswith("win32"), "stdio manipulation unsupported on Windows") + @skipIfWindows # stdio manipulation unsupported on Windows @python_api_test @dwarf_test def test_stdin_redirection_with_dwarf(self): @@ -42,7 +42,7 @@ class ProcessIOTestCase(TestBase): self.buildDwarf() self.do_stdin_redirection() - @unittest2.skipUnless(sys.platform.startswith("darwin"), "dsym requires Darwin") + @skipUnlessDarwin @python_api_test @dsym_test def test_stdout_redirection_with_dsym(self): @@ -50,7 +50,7 @@ class ProcessIOTestCase(TestBase): self.buildDsym() self.do_stdout_redirection() - @unittest2.skipIf(sys.platform.startswith("win32"), "stdio manipulation unsupported on Windows") + @skipIfWindows # stdio manipulation unsupported on Windows @python_api_test @dwarf_test def test_stdout_redirection_with_dwarf(self): @@ -58,7 +58,7 @@ class ProcessIOTestCase(TestBase): self.buildDwarf() self.do_stdout_redirection() - @unittest2.skipUnless(sys.platform.startswith("darwin"), "dsym requires Darwin") + @skipUnlessDarwin @python_api_test @dsym_test def test_stderr_redirection_with_dsym(self): @@ -66,7 +66,7 @@ class ProcessIOTestCase(TestBase): self.buildDsym() self.do_stderr_redirection() - @unittest2.skipIf(sys.platform.startswith("win32"), "stdio manipulation unsupported on Windows") + @skipIfWindows # stdio manipulation unsupported on Windows @python_api_test @dwarf_test def test_stderr_redirection_with_dwarf(self): @@ -74,7 +74,7 @@ class ProcessIOTestCase(TestBase): self.buildDwarf() self.do_stderr_redirection() - @unittest2.skipUnless(sys.platform.startswith("darwin"), "dsym requires Darwin") + @skipUnlessDarwin @python_api_test @dsym_test def test_stdout_stderr_redirection_with_dsym(self): @@ -82,7 +82,7 @@ class ProcessIOTestCase(TestBase): self.buildDsym() self.do_stdout_stderr_redirection() - @unittest2.skipIf(sys.platform.startswith("win32"), "stdio manipulation unsupported on Windows") + @skipIfWindows # stdio manipulation unsupported on Windows @python_api_test @dwarf_test def test_stdout_stderr_redirection_with_dwarf(self): |