diff options
Diffstat (limited to 'lldb/test/python_api')
32 files changed, 64 insertions, 66 deletions
diff --git a/lldb/test/python_api/breakpoint/TestBreakpointAPI.py b/lldb/test/python_api/breakpoint/TestBreakpointAPI.py index ed3402d3d2e..0a4e7fa5a79 100644 --- a/lldb/test/python_api/breakpoint/TestBreakpointAPI.py +++ b/lldb/test/python_api/breakpoint/TestBreakpointAPI.py @@ -12,7 +12,7 @@ class BreakpointAPITestCase(TestBase): mydir = TestBase.compute_mydir(__file__) - @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin") + @skipUnlessDarwin @python_api_test @dsym_test def test_breakpoint_is_valid_with_dsym(self): diff --git a/lldb/test/python_api/class_members/TestSBTypeClassMembers.py b/lldb/test/python_api/class_members/TestSBTypeClassMembers.py index 554cc3150a8..c3af671572a 100644 --- a/lldb/test/python_api/class_members/TestSBTypeClassMembers.py +++ b/lldb/test/python_api/class_members/TestSBTypeClassMembers.py @@ -12,7 +12,7 @@ class SBTypeMemberFunctionsTest(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): @@ -22,7 +22,7 @@ class SBTypeMemberFunctionsTest(TestBase): self.setTearDownCleanup(dictionary=d) self.type_api(self.exe_name) - @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin") + @skipUnlessDarwin @python_api_test @dwarf_test def test_with_dwarf(self): diff --git a/lldb/test/python_api/event/TestEvents.py b/lldb/test/python_api/event/TestEvents.py index 62c1f503dfc..d79ba333bb5 100644 --- a/lldb/test/python_api/event/TestEvents.py +++ b/lldb/test/python_api/event/TestEvents.py @@ -12,7 +12,7 @@ class EventAPITestCase(TestBase): mydir = TestBase.compute_mydir(__file__) - @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin") + @skipUnlessDarwin @python_api_test @dsym_test def test_listen_for_and_print_event_with_dsym(self): @@ -20,9 +20,7 @@ class EventAPITestCase(TestBase): self.buildDsym() self.do_listen_for_and_print_event() - @unittest2.skipUnless((sys.platform.startswith("darwin") or - sys.platform.startswith("freebsd")), - "requires Darwin or FreeBSD") + @skipUnlessPlatform(["darwin", "macosx", "freebsd"]) @python_api_test @dwarf_test def test_listen_for_and_print_event_with_dwarf(self): @@ -30,7 +28,7 @@ class EventAPITestCase(TestBase): self.buildDwarf() self.do_listen_for_and_print_event() - @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin") + @skipUnlessDarwin @python_api_test @dsym_test def test_wait_for_event_with_dsym(self): @@ -46,7 +44,7 @@ class EventAPITestCase(TestBase): self.buildDwarf() self.do_wait_for_event() - @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin") + @skipUnlessDarwin @python_api_test @dsym_test def test_add_listener_to_broadcaster_with_dsym(self): diff --git a/lldb/test/python_api/findvalue_duplist/TestSBFrameFindValue.py b/lldb/test/python_api/findvalue_duplist/TestSBFrameFindValue.py index 6a3b2b0b43f..41d782ea93a 100644 --- a/lldb/test/python_api/findvalue_duplist/TestSBFrameFindValue.py +++ b/lldb/test/python_api/findvalue_duplist/TestSBFrameFindValue.py @@ -10,7 +10,7 @@ class SBFrameFindValueTestCase(TestBase): mydir = TestBase.compute_mydir(__file__) - @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin") + @skipUnlessDarwin @python_api_test @dsym_test def test_with_dsym_formatters_api(self): diff --git a/lldb/test/python_api/formatters/TestFormattersSBAPI.py b/lldb/test/python_api/formatters/TestFormattersSBAPI.py index 67aa639fd7b..c8604735f62 100644 --- a/lldb/test/python_api/formatters/TestFormattersSBAPI.py +++ b/lldb/test/python_api/formatters/TestFormattersSBAPI.py @@ -10,7 +10,7 @@ class SBFormattersAPITestCase(TestBase): mydir = TestBase.compute_mydir(__file__) - @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin") + @skipUnlessDarwin @python_api_test @dsym_test def test_with_dsym_formatters_api(self): 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): diff --git a/lldb/test/python_api/function_symbol/TestDisasmAPI.py b/lldb/test/python_api/function_symbol/TestDisasmAPI.py index 6ec69ab6e70..d7270ba72d5 100644 --- a/lldb/test/python_api/function_symbol/TestDisasmAPI.py +++ b/lldb/test/python_api/function_symbol/TestDisasmAPI.py @@ -12,7 +12,7 @@ class DisasmAPITestCase(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/function_symbol/TestSymbolAPI.py b/lldb/test/python_api/function_symbol/TestSymbolAPI.py index dfb8fad23cb..6a315f288a6 100644 --- a/lldb/test/python_api/function_symbol/TestSymbolAPI.py +++ b/lldb/test/python_api/function_symbol/TestSymbolAPI.py @@ -12,7 +12,7 @@ class SymbolAPITestCase(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/hello_world/TestHelloWorld.py b/lldb/test/python_api/hello_world/TestHelloWorld.py index cf24889260d..a94ceee486d 100644 --- a/lldb/test/python_api/hello_world/TestHelloWorld.py +++ b/lldb/test/python_api/hello_world/TestHelloWorld.py @@ -10,7 +10,7 @@ class HelloWorldTestCase(TestBase): mydir = TestBase.compute_mydir(__file__) - @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin") + @skipUnlessDarwin @python_api_test @dsym_test def test_with_dsym_and_process_launch_api(self): @@ -34,7 +34,7 @@ class HelloWorldTestCase(TestBase): self.hello_world_python() @not_remote_testsuite_ready - @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin") + @skipUnlessDarwin @python_api_test @dsym_test def test_with_dsym_and_attach_to_process_with_id_api(self): @@ -59,7 +59,7 @@ class HelloWorldTestCase(TestBase): self.hello_world_attach_with_id_api() @not_remote_testsuite_ready - @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin") + @skipUnlessDarwin @python_api_test @dsym_test def test_with_dsym_and_attach_to_process_with_name_api(self): diff --git a/lldb/test/python_api/interpreter/TestCommandInterpreterAPI.py b/lldb/test/python_api/interpreter/TestCommandInterpreterAPI.py index 2eeb34f5ced..c57535c77c0 100644 --- a/lldb/test/python_api/interpreter/TestCommandInterpreterAPI.py +++ b/lldb/test/python_api/interpreter/TestCommandInterpreterAPI.py @@ -9,7 +9,7 @@ class CommandInterpreterAPICase(TestBase): mydir = TestBase.compute_mydir(__file__) - @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin") + @skipUnlessDarwin @python_api_test @dsym_test def test_with_dsym_and_process_launch_api(self): diff --git a/lldb/test/python_api/objc_type/TestObjCType.py b/lldb/test/python_api/objc_type/TestObjCType.py index ff26ae86e64..ba3687a6508 100644 --- a/lldb/test/python_api/objc_type/TestObjCType.py +++ b/lldb/test/python_api/objc_type/TestObjCType.py @@ -12,7 +12,7 @@ class ObjCSBTypeTestCase(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): @@ -20,7 +20,7 @@ class ObjCSBTypeTestCase(TestBase): self.buildDsym() self.objc_sbtype_test() - @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin") + @skipUnlessDarwin @python_api_test @dwarf_test def test_with_dwarf(self): 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): diff --git a/lldb/test/python_api/rdar-12481949/Test-rdar-12481949.py b/lldb/test/python_api/rdar-12481949/Test-rdar-12481949.py index 808e64be7f5..49057851c96 100644 --- a/lldb/test/python_api/rdar-12481949/Test-rdar-12481949.py +++ b/lldb/test/python_api/rdar-12481949/Test-rdar-12481949.py @@ -13,7 +13,7 @@ class Radar12481949DataFormatterTestCase(TestBase): # test for rdar://problem/12481949 mydir = TestBase.compute_mydir(__file__) - @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin") + @skipUnlessDarwin @dsym_test def test_with_dsym_and_run_command(self): """Check that SBValue.GetValueAsSigned() does the right thing for a 32-bit -1.""" diff --git a/lldb/test/python_api/sbdata/TestSBData.py b/lldb/test/python_api/sbdata/TestSBData.py index 82a7d05a5f9..4429da5cdd5 100644 --- a/lldb/test/python_api/sbdata/TestSBData.py +++ b/lldb/test/python_api/sbdata/TestSBData.py @@ -11,7 +11,7 @@ class SBDataAPICase(TestBase): mydir = TestBase.compute_mydir(__file__) - @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin") + @skipUnlessDarwin @python_api_test @dsym_test def test_with_dsym_and_run_command(self): diff --git a/lldb/test/python_api/sbvalue_persist/TestSBValuePersist.py b/lldb/test/python_api/sbvalue_persist/TestSBValuePersist.py index d05274f56b6..407d417133c 100644 --- a/lldb/test/python_api/sbvalue_persist/TestSBValuePersist.py +++ b/lldb/test/python_api/sbvalue_persist/TestSBValuePersist.py @@ -10,7 +10,7 @@ class SBValuePersistTestCase(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/section/TestSectionAPI.py b/lldb/test/python_api/section/TestSectionAPI.py index de13717f56c..6c7b4f53ea7 100755 --- a/lldb/test/python_api/section/TestSectionAPI.py +++ b/lldb/test/python_api/section/TestSectionAPI.py @@ -9,7 +9,7 @@ class SectionAPITestCase(TestBase): mydir = TestBase.compute_mydir(__file__) - @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin") + @skipUnlessDarwin @python_api_test @dsym_test def test_get_target_byte_size_with_dsym(self): diff --git a/lldb/test/python_api/symbol-context/TestSymbolContext.py b/lldb/test/python_api/symbol-context/TestSymbolContext.py index 88fc71546aa..c7a49bb3eb0 100644 --- a/lldb/test/python_api/symbol-context/TestSymbolContext.py +++ b/lldb/test/python_api/symbol-context/TestSymbolContext.py @@ -12,7 +12,7 @@ class SymbolContextAPITestCase(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/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): diff --git a/lldb/test/python_api/thread/TestThreadAPI.py b/lldb/test/python_api/thread/TestThreadAPI.py index 875273ab392..cd82faaa338 100644 --- a/lldb/test/python_api/thread/TestThreadAPI.py +++ b/lldb/test/python_api/thread/TestThreadAPI.py @@ -12,7 +12,7 @@ class ThreadAPITestCase(TestBase): mydir = TestBase.compute_mydir(__file__) - @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin") + @skipUnlessDarwin @python_api_test @dsym_test def test_get_process_with_dsym(self): @@ -27,7 +27,7 @@ class ThreadAPITestCase(TestBase): self.buildDwarf() self.get_process() - @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin") + @skipUnlessDarwin @python_api_test @dsym_test def test_get_stop_description_with_dsym(self): @@ -42,7 +42,7 @@ class ThreadAPITestCase(TestBase): self.buildDwarf() self.get_stop_description() - @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin") + @skipUnlessDarwin @python_api_test @dsym_test def test_run_to_address_with_dsym(self): @@ -63,7 +63,7 @@ class ThreadAPITestCase(TestBase): self.setTearDownCleanup(dictionary=d) self.run_to_address(self.exe_name) - @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin") + @skipUnlessDarwin @python_api_test @dsym_test def test_step_out_of_malloc_into_function_b_with_dsym(self): @@ -86,7 +86,7 @@ class ThreadAPITestCase(TestBase): self.setTearDownCleanup(dictionary=d) self.step_out_of_malloc_into_function_b(self.exe_name) - @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin") + @skipUnlessDarwin @python_api_test @dsym_test def test_step_over_3_times_with_dsym(self): diff --git a/lldb/test/python_api/type/TestTypeList.py b/lldb/test/python_api/type/TestTypeList.py index 71d1f4593ca..19f178e0f05 100644 --- a/lldb/test/python_api/type/TestTypeList.py +++ b/lldb/test/python_api/type/TestTypeList.py @@ -12,7 +12,7 @@ class TypeAndTypeListTestCase(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/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): diff --git a/lldb/test/python_api/value_var_update/TestValueVarUpdate.py b/lldb/test/python_api/value_var_update/TestValueVarUpdate.py index 395982374d2..5fb6893aec7 100644 --- a/lldb/test/python_api/value_var_update/TestValueVarUpdate.py +++ b/lldb/test/python_api/value_var_update/TestValueVarUpdate.py @@ -10,7 +10,7 @@ class HelloWorldTestCase(TestBase): mydir = TestBase.compute_mydir(__file__) - @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin") + @skipUnlessDarwin @python_api_test @dsym_test def test_with_dsym_and_process_launch_api(self): diff --git a/lldb/test/python_api/watchpoint/TestSetWatchpoint.py b/lldb/test/python_api/watchpoint/TestSetWatchpoint.py index f4dd7ab780f..8c567c196a2 100644 --- a/lldb/test/python_api/watchpoint/TestSetWatchpoint.py +++ b/lldb/test/python_api/watchpoint/TestSetWatchpoint.py @@ -20,7 +20,7 @@ class SetWatchpointAPITestCase(TestBase): # Find the line number to break inside main(). self.line = line_number(self.source, '// Set break point at this line.') - @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin") + @skipUnlessDarwin @python_api_test @dsym_test def test_watch_val_with_dsym(self): diff --git a/lldb/test/python_api/watchpoint/TestWatchpointIgnoreCount.py b/lldb/test/python_api/watchpoint/TestWatchpointIgnoreCount.py index 512f1c21095..1412b9ed268 100644 --- a/lldb/test/python_api/watchpoint/TestWatchpointIgnoreCount.py +++ b/lldb/test/python_api/watchpoint/TestWatchpointIgnoreCount.py @@ -20,7 +20,7 @@ class WatchpointIgnoreCountTestCase(TestBase): # Find the line number to break inside main(). self.line = line_number(self.source, '// Set break point at this line.') - @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin") + @skipUnlessDarwin @python_api_test @dsym_test def test_set_watch_ignore_count_with_dsym(self): diff --git a/lldb/test/python_api/watchpoint/TestWatchpointIter.py b/lldb/test/python_api/watchpoint/TestWatchpointIter.py index 76514ee4277..592c040ea69 100644 --- a/lldb/test/python_api/watchpoint/TestWatchpointIter.py +++ b/lldb/test/python_api/watchpoint/TestWatchpointIter.py @@ -20,7 +20,7 @@ class WatchpointIteratorTestCase(TestBase): # Find the line number to break inside main(). self.line = line_number(self.source, '// Set break point at this line.') - @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin") + @skipUnlessDarwin @python_api_test @dsym_test def test_watch_iter_with_dsym(self): diff --git a/lldb/test/python_api/watchpoint/condition/TestWatchpointConditionAPI.py b/lldb/test/python_api/watchpoint/condition/TestWatchpointConditionAPI.py index 3c164c5635f..ae48e843fd1 100644 --- a/lldb/test/python_api/watchpoint/condition/TestWatchpointConditionAPI.py +++ b/lldb/test/python_api/watchpoint/condition/TestWatchpointConditionAPI.py @@ -25,7 +25,7 @@ class WatchpointConditionAPITestCase(TestBase): self.exe_name = self.testMethodName self.d = {'CXX_SOURCES': self.source, 'EXE': self.exe_name} - @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin") + @skipUnlessDarwin @dsym_test def test_watchpoint_cond_api_with_dsym(self): """Test watchpoint condition API.""" diff --git a/lldb/test/python_api/watchpoint/watchlocation/TestSetWatchlocation.py b/lldb/test/python_api/watchpoint/watchlocation/TestSetWatchlocation.py index 98ff4a8535d..4a02179fd93 100644 --- a/lldb/test/python_api/watchpoint/watchlocation/TestSetWatchlocation.py +++ b/lldb/test/python_api/watchpoint/watchlocation/TestSetWatchlocation.py @@ -22,7 +22,7 @@ class SetWatchlocationAPITestCase(TestBase): # This is for verifying that watch location works. self.violating_func = "do_bad_thing_with_location"; - @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin") + @skipUnlessDarwin @python_api_test @dsym_test def test_watch_location_with_dsym(self): diff --git a/lldb/test/python_api/watchpoint/watchlocation/TestTargetWatchAddress.py b/lldb/test/python_api/watchpoint/watchlocation/TestTargetWatchAddress.py index 2b62e0e4562..83ac795d9da 100644 --- a/lldb/test/python_api/watchpoint/watchlocation/TestTargetWatchAddress.py +++ b/lldb/test/python_api/watchpoint/watchlocation/TestTargetWatchAddress.py @@ -22,7 +22,7 @@ class TargetWatchAddressAPITestCase(TestBase): # This is for verifying that watch location works. self.violating_func = "do_bad_thing_with_location"; - @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin") + @skipUnlessDarwin @python_api_test @dsym_test def test_watch_address_with_dsym(self): @@ -38,7 +38,7 @@ class TargetWatchAddressAPITestCase(TestBase): self.buildDwarf() self.do_set_watchaddress() - @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin") + @skipUnlessDarwin @python_api_test @dsym_test def test_watch_address_with_invalid_watch_size_with_dsym(self): |