Skip to content
Permalink
Browse files

[lldb] [test] Enable lldb-server tests on NetBSD, and set XFAILs

Differential Revision: https://reviews.llvm.org/D70335
  • Loading branch information
mgorny committed Nov 15, 2019
1 parent a433e71 commit e8924d6403eba06438f669e434eee11016f20a67
@@ -1021,10 +1021,17 @@ def run_suite():
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
@@ -59,6 +59,7 @@ def test_attach_with_vAttach_debugserver(self):
self.set_inferior_startup_attach_manually()
self.attach_with_vAttach()

@expectedFailureNetBSD
@llgs_test
def test_attach_with_vAttach_llgs(self):
self.init_llgs_test()
@@ -129,6 +129,7 @@ def test_auxv_data_is_correct_size_debugserver(self):
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 @@ def test_auxv_keys_look_valid_debugserver(self):
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 @@ def test_auxv_chunked_reads_work_debugserver(self):
self.auxv_chunked_reads_work()

@skipIfWindows
@expectedFailureNetBSD
@llgs_test
def test_auxv_chunked_reads_work_llgs(self):
self.init_llgs_test()
@@ -52,6 +52,7 @@ def test_attach_commandline_kill_after_initial_stop_debugserver(self):
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()
@@ -75,6 +75,7 @@ def test_attach_commandline_qProcessInfo_reports_correct_pid_debugserver(
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()
@@ -211,6 +211,7 @@ def test_stop_reply_reports_multiple_threads_debugserver(self):
# 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 @@ def test_no_QListThreadsInStopReply_supplies_no_threads_debugserver(self):
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 @@ def test_stop_reply_reports_correct_threads_debugserver(self):
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 @@ def stop_reply_contains_thread_pcs(self, thread_count):
== 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()
@@ -125,6 +125,7 @@ def test_qThreadStopInfo_works_for_multiple_threads_debugserver(self):
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 @@ def test_qThreadStopInfo_only_reports_one_thread_stop_reason_during_interrupt_de
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):
@@ -113,18 +113,21 @@ def test_supports_libraries_svr4(self):

@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()
@@ -138,13 +138,15 @@ def g_returns_correct_data(self, with_suffix):
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()
self.build()
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()
@@ -82,6 +82,7 @@ def test_change_signals_at_runtime(self):
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()
@@ -30,6 +30,7 @@ def run_and_check_name(self, expected_name):
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"""

0 comments on commit e8924d6

Please sign in to comment.
You can’t perform that action at this time.