summaryrefslogtreecommitdiffstats
path: root/lldb/test/python_api/value
diff options
context:
space:
mode:
authorRobert Flack <flackr@gmail.com>2015-03-30 14:12:17 +0000
committerRobert Flack <flackr@gmail.com>2015-03-30 14:12:17 +0000
commit13c7ad9cd245fca52773ac47e53da1cb46b38320 (patch)
tree98bf6753d53607c6ddbc1faf7ea6d2d419b1a22b /lldb/test/python_api/value
parentab6216d050a5c3191a9f0db8e2dde426a5876f9d (diff)
downloadbcm5719-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/value')
-rw-r--r--lldb/test/python_api/value/TestValueAPI.py2
-rw-r--r--lldb/test/python_api/value/change_values/TestChangeValueAPI.py2
-rw-r--r--lldb/test/python_api/value/linked_list/TestValueAPILinkedList.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/lldb/test/python_api/value/TestValueAPI.py b/lldb/test/python_api/value/TestValueAPI.py
index a170692468d..60239762a7f 100644
--- a/lldb/test/python_api/value/TestValueAPI.py
+++ b/lldb/test/python_api/value/TestValueAPI.py
@@ -12,7 +12,7 @@ class ValueAPITestCase(TestBase):
mydir = TestBase.compute_mydir(__file__)
- @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
+ @skipUnlessDarwin
@python_api_test
@dsym_test
def test_with_dsym(self):
diff --git a/lldb/test/python_api/value/change_values/TestChangeValueAPI.py b/lldb/test/python_api/value/change_values/TestChangeValueAPI.py
index 22aa49c0fc7..5e8e08113d6 100644
--- a/lldb/test/python_api/value/change_values/TestChangeValueAPI.py
+++ b/lldb/test/python_api/value/change_values/TestChangeValueAPI.py
@@ -12,7 +12,7 @@ class ChangeValueAPITestCase(TestBase):
mydir = TestBase.compute_mydir(__file__)
- @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
+ @skipUnlessDarwin
@python_api_test
@dsym_test
def test_change_value_with_dsym(self):
diff --git a/lldb/test/python_api/value/linked_list/TestValueAPILinkedList.py b/lldb/test/python_api/value/linked_list/TestValueAPILinkedList.py
index 68905f3ec4a..6a1224bc106 100644
--- a/lldb/test/python_api/value/linked_list/TestValueAPILinkedList.py
+++ b/lldb/test/python_api/value/linked_list/TestValueAPILinkedList.py
@@ -13,7 +13,7 @@ class ValueAsLinkedListTestCase(TestBase):
mydir = TestBase.compute_mydir(__file__)
- @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
+ @skipUnlessDarwin
@python_api_test
@dsym_test
def test_with_dsym(self):
OpenPOWER on IntegriCloud