Author: Adrian Prantl Date: 2022-02-07T08:26:48-08:00 New Revision: d42765b3bea5ee90426c49f35b0b5654de82a4f9
URL: https://github.com/llvm/llvm-project/commit/d42765b3bea5ee90426c49f35b0b5654de82a4f9 DIFF: https://github.com/llvm/llvm-project/commit/d42765b3bea5ee90426c49f35b0b5654de82a4f9.diff LOG: Add llgs category to all tests in TestLldbGdbServer that attach to the process. Added: Modified: lldb/test/API/tools/lldb-server/TestLldbGdbServer.py Removed: ################################################################################ diff --git a/lldb/test/API/tools/lldb-server/TestLldbGdbServer.py b/lldb/test/API/tools/lldb-server/TestLldbGdbServer.py index 18461568c02ce..d0a839a9df16b 100644 --- a/lldb/test/API/tools/lldb-server/TestLldbGdbServer.py +++ b/lldb/test/API/tools/lldb-server/TestLldbGdbServer.py @@ -52,6 +52,7 @@ def test_list_threads_in_stop_reply_supported(self): True) self.expect_gdbremote_sequence() + @add_test_categories(["llgs"]) def test_c_packet_works(self): self.build() procs = self.prep_debug_monitor_and_inferior() @@ -63,6 +64,7 @@ def test_c_packet_works(self): self.expect_gdbremote_sequence() @skipIfWindows # No pty support to test any inferior output + @add_test_categories(["llgs"]) def test_inferior_print_exit(self): self.build() procs = self.prep_debug_monitor_and_inferior( @@ -76,6 +78,7 @@ def test_inferior_print_exit(self): context = self.expect_gdbremote_sequence() self.assertIsNotNone(context) + @add_test_categories(["llgs"]) def test_first_launch_stop_reply_thread_matches_first_qC(self): self.build() procs = self.prep_debug_monitor_and_inferior() @@ -91,6 +94,7 @@ def test_first_launch_stop_reply_thread_matches_first_qC(self): context = self.expect_gdbremote_sequence() self.assertEqual(context.get("thread_id_QC"), context.get("thread_id_?")) + @add_test_categories(["llgs"]) def test_attach_commandline_continue_app_exits(self): self.build() self.set_inferior_startup_attach() @@ -116,6 +120,7 @@ def test_attach_commandline_continue_app_exits(self): lldbgdbserverutils.process_is_running( procs["inferior"].pid, False)) + @add_test_categories(["llgs"]) def test_qRegisterInfo_returns_one_valid_result(self): self.build() self.prep_debug_monitor_and_inferior() @@ -133,6 +138,7 @@ def test_qRegisterInfo_returns_one_valid_result(self): self.assert_valid_reg_info( lldbgdbserverutils.parse_reg_info_response(reg_info_packet)) + @add_test_categories(["llgs"]) def test_qRegisterInfo_returns_all_valid_results(self): self.build() self.prep_debug_monitor_and_inferior() @@ -146,6 +152,7 @@ def test_qRegisterInfo_returns_all_valid_results(self): for reg_info in self.parse_register_info_packets(context): self.assert_valid_reg_info(reg_info) + @add_test_categories(["llgs"]) def test_qRegisterInfo_contains_required_generics_debugserver(self): self.build() self.prep_debug_monitor_and_inferior() @@ -175,6 +182,7 @@ def test_qRegisterInfo_contains_required_generics_debugserver(self): # Ensure we have a flags register. self.assertIn('flags', generic_regs) + @add_test_categories(["llgs"]) def test_qRegisterInfo_contains_at_least_one_register_set(self): self.build() self.prep_debug_monitor_and_inferior() @@ -249,12 +257,14 @@ def qThreadInfo_contains_thread(self): # We should have exactly one thread. self.assertEqual(len(threads), 1) + @add_test_categories(["llgs"]) def test_qThreadInfo_contains_thread_launch(self): self.build() self.set_inferior_startup_launch() self.qThreadInfo_contains_thread() @expectedFailureAll(oslist=["windows"]) # expect one more thread stopped + @add_test_categories(["llgs"]) def test_qThreadInfo_contains_thread_attach(self): self.build() self.set_inferior_startup_attach() @@ -288,17 +298,20 @@ def qThreadInfo_matches_qC(self): # Those two should be the same. self.assertEqual(threads[0], QC_thread_id) + @add_test_categories(["llgs"]) def test_qThreadInfo_matches_qC_launch(self): self.build() self.set_inferior_startup_launch() self.qThreadInfo_matches_qC() @expectedFailureAll(oslist=["windows"]) # expect one more thread stopped + @add_test_categories(["llgs"]) def test_qThreadInfo_matches_qC_attach(self): self.build() self.set_inferior_startup_attach() self.qThreadInfo_matches_qC() + @add_test_categories(["llgs"]) def test_p_returns_correct_data_size_for_each_qRegisterInfo_launch(self): self.build() self.set_inferior_startup_launch() @@ -391,14 +404,14 @@ def Hg_switches_to_3_threads(self, pass_pid=False): self.assertEqual(int(context.get("thread_id"), 16), thread) @expectedFailureAll(oslist=["windows"]) # expect 4 threads - @skipIf(compiler="clang", compiler_version=['<', '11.0']) + @add_test_categories(["llgs"]) def test_Hg_switches_to_3_threads_launch(self): self.build() self.set_inferior_startup_launch() self.Hg_switches_to_3_threads() @expectedFailureAll(oslist=["windows"]) # expecting one more thread - @skipIf(compiler="clang", compiler_version=['<', '11.0']) + @add_test_categories(["llgs"]) def test_Hg_switches_to_3_threads_attach(self): self.build() self.set_inferior_startup_attach() @@ -406,7 +419,6 @@ def test_Hg_switches_to_3_threads_attach(self): @expectedFailureAll(oslist=["windows"]) # expect 4 threads @add_test_categories(["llgs"]) - @skipIf(compiler="clang", compiler_version=['<', '11.0']) def test_Hg_switches_to_3_threads_attach_pass_correct_pid(self): self.build() self.set_inferior_startup_attach() @@ -571,6 +583,7 @@ def Hc_then_Csignal_signals_correct_thread(self, segfault_signo): @skipIfWindows # no SIGSEGV support @expectedFailureAll(oslist=["freebsd"], bugnumber="llvm.org/pr48419") @expectedFailureNetBSD + @add_test_categories(["llgs"]) def test_Hc_then_Csignal_signals_correct_thread_launch(self): self.build() self.set_inferior_startup_launch() @@ -584,6 +597,7 @@ def test_Hc_then_Csignal_signals_correct_thread_launch(self): lldbutil.get_signal_number('SIGSEGV')) @skipIfWindows # No pty support to test any inferior output + @add_test_categories(["llgs"]) def test_m_packet_reads_memory(self): self.build() self.set_inferior_startup_launch() @@ -638,6 +652,7 @@ def test_m_packet_reads_memory(self): read_contents = seven.unhexlify(context.get("read_contents")) self.assertEqual(read_contents, MEMORY_CONTENTS) + @add_test_categories(["llgs"]) def test_qMemoryRegionInfo_is_supported(self): self.build() self.set_inferior_startup_launch() @@ -652,6 +667,7 @@ def test_qMemoryRegionInfo_is_supported(self): self.expect_gdbremote_sequence() @skipIfWindows # No pty support to test any inferior output + @add_test_categories(["llgs"]) def test_qMemoryRegionInfo_reports_code_address_as_executable(self): self.build() self.set_inferior_startup_launch() @@ -704,6 +720,7 @@ def test_qMemoryRegionInfo_reports_code_address_as_executable(self): self.assert_address_within_memory_region(code_address, mem_region_dict) @skipIfWindows # No pty support to test any inferior output + @add_test_categories(["llgs"]) def test_qMemoryRegionInfo_reports_stack_address_as_rw(self): self.build() self.set_inferior_startup_launch() @@ -757,6 +774,7 @@ def test_qMemoryRegionInfo_reports_stack_address_as_rw(self): stack_address, mem_region_dict) @skipIfWindows # No pty support to test any inferior output + @add_test_categories(["llgs"]) def test_qMemoryRegionInfo_reports_heap_address_as_rw(self): self.build() self.set_inferior_startup_launch() @@ -941,6 +959,7 @@ def breakpoint_set_and_remove_work(self, want_hardware): self.assertIsNotNone(context) @skipIfWindows # No pty support to test any inferior output + @add_test_categories(["llgs"]) def test_software_breakpoint_set_and_remove_work(self): if self.getArchitecture() == "arm": # TODO: Handle case when setting breakpoint in thumb code @@ -952,6 +971,7 @@ def test_software_breakpoint_set_and_remove_work(self): @skipUnlessPlatform(oslist=['linux']) @skipIf(archs=no_match(['arm', 'aarch64'])) + @add_test_categories(["llgs"]) def test_hardware_breakpoint_set_and_remove_work(self): if self.getArchitecture() == "arm": # TODO: Handle case when setting breakpoint in thumb code @@ -1048,6 +1068,7 @@ def test_qSupported_memory_tagging(self): '+' if self.isAArch64MTE() else '-') @skipIfWindows # No pty support to test any inferior output + @add_test_categories(["llgs"]) def test_written_M_content_reads_back_correctly(self): self.build() self.set_inferior_startup_launch() @@ -1113,6 +1134,7 @@ def test_written_M_content_reads_back_correctly(self): # Note: as of this moment, a hefty number of the GPR writes are failing with E32 (everything except rax-rdx, rdi, rsi, rbp). # Come back to this. I have the test rigged to verify that at least some # of the bit-flip writes work. + @add_test_categories(["llgs"]) def test_P_writes_all_gpr_registers(self): self.build() self.set_inferior_startup_launch() @@ -1150,6 +1172,7 @@ def test_P_writes_all_gpr_registers(self): # Note: as of this moment, a hefty number of the GPR writes are failing # with E32 (everything except rax-rdx, rdi, rsi, rbp). @skipIfWindows + @add_test_categories(["llgs"]) def test_P_and_p_thread_suffix_work(self): self.build() self.set_inferior_startup_launch() _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits