Index: lldb/packages/Python/lldbsuite/test/dotest.py =================================================================== --- lldb/packages/Python/lldbsuite/test/dotest.py +++ lldb/packages/Python/lldbsuite/test/dotest.py @@ -1021,10 +1021,17 @@ checkDebugInfoSupport() # Don't do debugserver tests on anything except OS X. - configuration.dont_do_debugserver_test = "linux" in target_platform or "freebsd" in target_platform or "windows" in target_platform + configuration.dont_do_debugserver_test = ( + "linux" in target_platform or + "freebsd" in target_platform or + "netbsd" in target_platform or + "windows" in target_platform) # Don't do lldb-server (llgs) tests on anything except Linux and Windows. - configuration.dont_do_llgs_test = not ("linux" in target_platform) and not ("windows" in target_platform) + configuration.dont_do_llgs_test = not ( + "linux" in target_platform or + "netbsd" in target_platform or + "windows" in target_platform) # Collect tests from the specified testing directories. If a test # subdirectory filter is explicitly specified, limit the search to that Index: lldb/packages/Python/lldbsuite/test/tools/lldb-server/TestGdbRemoteAttach.py =================================================================== --- lldb/packages/Python/lldbsuite/test/tools/lldb-server/TestGdbRemoteAttach.py +++ lldb/packages/Python/lldbsuite/test/tools/lldb-server/TestGdbRemoteAttach.py @@ -59,6 +59,7 @@ self.set_inferior_startup_attach_manually() self.attach_with_vAttach() + @expectedFailureNetBSD @llgs_test def test_attach_with_vAttach_llgs(self): self.init_llgs_test() Index: lldb/packages/Python/lldbsuite/test/tools/lldb-server/TestGdbRemoteAuxvSupport.py =================================================================== --- lldb/packages/Python/lldbsuite/test/tools/lldb-server/TestGdbRemoteAuxvSupport.py +++ lldb/packages/Python/lldbsuite/test/tools/lldb-server/TestGdbRemoteAuxvSupport.py @@ -129,6 +129,7 @@ self.auxv_data_is_correct_size() @skipIfWindows + @expectedFailureNetBSD @llgs_test def test_auxv_data_is_correct_size_llgs(self): self.init_llgs_test() @@ -168,6 +169,7 @@ self.auxv_keys_look_valid() @skipIfWindows + @expectedFailureNetBSD @llgs_test def test_auxv_keys_look_valid_llgs(self): self.init_llgs_test() @@ -216,6 +218,7 @@ self.auxv_chunked_reads_work() @skipIfWindows + @expectedFailureNetBSD @llgs_test def test_auxv_chunked_reads_work_llgs(self): self.init_llgs_test() Index: lldb/packages/Python/lldbsuite/test/tools/lldb-server/TestGdbRemoteKill.py =================================================================== --- lldb/packages/Python/lldbsuite/test/tools/lldb-server/TestGdbRemoteKill.py +++ lldb/packages/Python/lldbsuite/test/tools/lldb-server/TestGdbRemoteKill.py @@ -52,6 +52,7 @@ self.set_inferior_startup_attach() self.attach_commandline_kill_after_initial_stop() + @expectedFailureNetBSD @llgs_test def test_attach_commandline_kill_after_initial_stop_llgs(self): self.init_llgs_test() Index: lldb/packages/Python/lldbsuite/test/tools/lldb-server/TestGdbRemoteProcessInfo.py =================================================================== --- lldb/packages/Python/lldbsuite/test/tools/lldb-server/TestGdbRemoteProcessInfo.py +++ lldb/packages/Python/lldbsuite/test/tools/lldb-server/TestGdbRemoteProcessInfo.py @@ -75,6 +75,7 @@ self.set_inferior_startup_attach() self.attach_commandline_qProcessInfo_reports_correct_pid() + @expectedFailureNetBSD @llgs_test def test_attach_commandline_qProcessInfo_reports_correct_pid_llgs(self): self.init_llgs_test() Index: lldb/packages/Python/lldbsuite/test/tools/lldb-server/TestGdbRemoteThreadsInStopReply.py =================================================================== --- lldb/packages/Python/lldbsuite/test/tools/lldb-server/TestGdbRemoteThreadsInStopReply.py +++ lldb/packages/Python/lldbsuite/test/tools/lldb-server/TestGdbRemoteThreadsInStopReply.py @@ -211,6 +211,7 @@ # to handle the exception debug event. So one more stop thread will be notified to the # delegate, e.g. llgs. So tests below to assert the stop threads number will all fail. @expectedFailureAll(oslist=["windows"]) + @skipIfNetBSD @llgs_test def test_stop_reply_reports_multiple_threads_llgs(self): self.init_llgs_test() @@ -233,6 +234,7 @@ self.no_QListThreadsInStopReply_supplies_no_threads(5) @expectedFailureAll(oslist=["windows"]) + @skipIfNetBSD @llgs_test def test_no_QListThreadsInStopReply_supplies_no_threads_llgs(self): self.init_llgs_test() @@ -271,6 +273,7 @@ self.stop_reply_reports_correct_threads(5) @expectedFailureAll(oslist=["windows"]) + @skipIfNetBSD @llgs_test def test_stop_reply_reports_correct_threads_llgs(self): self.init_llgs_test() @@ -296,6 +299,7 @@ == int(threads_info_pcs[thread_id], 16)) @expectedFailureAll(oslist=["windows"]) + @skipIfNetBSD @llgs_test def test_stop_reply_contains_thread_pcs_llgs(self): self.init_llgs_test() Index: lldb/packages/Python/lldbsuite/test/tools/lldb-server/TestGdbRemote_qThreadStopInfo.py =================================================================== --- lldb/packages/Python/lldbsuite/test/tools/lldb-server/TestGdbRemote_qThreadStopInfo.py +++ lldb/packages/Python/lldbsuite/test/tools/lldb-server/TestGdbRemote_qThreadStopInfo.py @@ -125,6 +125,7 @@ self.qThreadStopInfo_works_for_multiple_threads(self.THREAD_COUNT) @llgs_test + @skipIfNetBSD def test_qThreadStopInfo_works_for_multiple_threads_llgs(self): self.init_llgs_test() self.build() @@ -164,6 +165,7 @@ self.qThreadStopInfo_only_reports_one_thread_stop_reason_during_interrupt( self.THREAD_COUNT) + @expectedFailureNetBSD @llgs_test def test_qThreadStopInfo_only_reports_one_thread_stop_reason_during_interrupt_llgs( self): Index: lldb/packages/Python/lldbsuite/test/tools/lldb-server/libraries-svr4/TestGdbRemoteLibrariesSvr4Support.py =================================================================== --- lldb/packages/Python/lldbsuite/test/tools/lldb-server/libraries-svr4/TestGdbRemoteLibrariesSvr4Support.py +++ lldb/packages/Python/lldbsuite/test/tools/lldb-server/libraries-svr4/TestGdbRemoteLibrariesSvr4Support.py @@ -113,18 +113,21 @@ @llgs_test @skipUnlessPlatform(["linux", "android", "netbsd"]) + @expectedFailureNetBSD def test_libraries_svr4_well_formed(self): self.setup_test() self.libraries_svr4_well_formed() @llgs_test @skipUnlessPlatform(["linux", "android", "netbsd"]) + @expectedFailureNetBSD def test_libraries_svr4_load_addr(self): self.setup_test() self.libraries_svr4_has_correct_load_addr() @llgs_test @skipUnlessPlatform(["linux", "android", "netbsd"]) + @expectedFailureNetBSD def test_libraries_svr4_libs_present(self): self.setup_test() self.libraries_svr4_libs_present() Index: lldb/packages/Python/lldbsuite/test/tools/lldb-server/register-reading/TestGdbRemoteGPacket.py =================================================================== --- lldb/packages/Python/lldbsuite/test/tools/lldb-server/register-reading/TestGdbRemoteGPacket.py +++ lldb/packages/Python/lldbsuite/test/tools/lldb-server/register-reading/TestGdbRemoteGPacket.py @@ -138,6 +138,7 @@ self.assertEqual( ['0x727476787a7c7e71', '0x737577797b7d7f70'], get_reg_value('xmm15')) + @expectedFailureNetBSD @llgs_test def test_g_returns_correct_data_with_suffix_llgs(self): self.init_llgs_test() @@ -145,6 +146,7 @@ self.set_inferior_startup_launch() self.g_returns_correct_data(True) + @expectedFailureNetBSD @llgs_test def test_g_returns_correct_data_no_suffix_llgs(self): self.init_llgs_test() Index: lldb/packages/Python/lldbsuite/test/tools/lldb-server/signal-filtering/TestGdbRemote_QPassSignals.py =================================================================== --- lldb/packages/Python/lldbsuite/test/tools/lldb-server/signal-filtering/TestGdbRemote_QPassSignals.py +++ lldb/packages/Python/lldbsuite/test/tools/lldb-server/signal-filtering/TestGdbRemote_QPassSignals.py @@ -82,6 +82,7 @@ self.expect_exit_code(len(signals_to_ignore)) @skipIfWindows # no signal support + @expectedFailureNetBSD @llgs_test def test_default_signals_behavior(self): self.init_llgs_test() Index: lldb/packages/Python/lldbsuite/test/tools/lldb-server/thread-name/TestGdbRemoteThreadName.py =================================================================== --- lldb/packages/Python/lldbsuite/test/tools/lldb-server/thread-name/TestGdbRemoteThreadName.py +++ lldb/packages/Python/lldbsuite/test/tools/lldb-server/thread-name/TestGdbRemoteThreadName.py @@ -30,6 +30,7 @@ self.assertEqual(expected_name, kv_dict.get("name")) @skipIfWindows # the test is not updated for Windows. + @skipIfNetBSD # build failure due to pthread_setname_np prototype @llgs_test def test(self): """ Make sure lldb-server can retrieve inferior thread name"""