From 13c7ad9cd245fca52773ac47e53da1cb46b38320 Mon Sep 17 00:00:00 2001 From: Robert Flack Date: Mon, 30 Mar 2015 14:12:17 +0000 Subject: 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 --- lldb/test/python_api/frame/TestFrames.py | 2 +- lldb/test/python_api/frame/inlines/TestInlinedFrame.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'lldb/test/python_api/frame') diff --git a/lldb/test/python_api/frame/TestFrames.py b/lldb/test/python_api/frame/TestFrames.py index c820e1b90c9..068aa4c5909 100644 --- a/lldb/test/python_api/frame/TestFrames.py +++ b/lldb/test/python_api/frame/TestFrames.py @@ -13,7 +13,7 @@ class FrameAPITestCase(TestBase): mydir = TestBase.compute_mydir(__file__) - @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin") + @skipUnlessDarwin @python_api_test @dsym_test def test_get_arg_vals_for_call_stack_with_dsym(self): diff --git a/lldb/test/python_api/frame/inlines/TestInlinedFrame.py b/lldb/test/python_api/frame/inlines/TestInlinedFrame.py index 25e9b350e27..217b87e8926 100644 --- a/lldb/test/python_api/frame/inlines/TestInlinedFrame.py +++ b/lldb/test/python_api/frame/inlines/TestInlinedFrame.py @@ -12,7 +12,7 @@ class InlinedFrameAPITestCase(TestBase): mydir = TestBase.compute_mydir(__file__) - @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin") + @skipUnlessDarwin @python_api_test @dsym_test def test_stop_at_outer_inline_with_dsym(self): -- cgit v1.2.3