forked from OSchip/llvm-project
Add decorators for failing lldb-mi tests
Tests fail intermittently on FreeBSD and Linux, apparently due to threading race conditions in lldb-mi. See comments in http://reviews.llvm.org/D7529 and http://reviews.llvm.org/D7727 for more information. llvm.org/pr22411 llvm-svn: 229741
This commit is contained in:
parent
89b075e53a
commit
6fbde1f997
|
@ -10,6 +10,8 @@ class MiBreakpointTestCase(lldbmi_testcase.MiTestCaseBase):
|
|||
|
||||
@lldbmi_test
|
||||
@expectedFailureWindows("llvm.org/pr22274: need a pexpect replacement for windows")
|
||||
@skipIfFreeBSD # llvm.org/pr22411: Failure presumably due to known thread races
|
||||
@skipIfLinux # llvm.org/pr22411: Failure presumably due to known thread races
|
||||
def test_lldbmi_pendbreakonsym(self):
|
||||
"""Test that 'lldb-mi --interpreter' works for pending symbol breakpoints."""
|
||||
|
||||
|
@ -31,6 +33,8 @@ class MiBreakpointTestCase(lldbmi_testcase.MiTestCaseBase):
|
|||
|
||||
@lldbmi_test
|
||||
@expectedFailureWindows("llvm.org/pr22274: need a pexpect replacement for windows")
|
||||
@skipIfFreeBSD # llvm.org/pr22411: Failure presumably due to known thread races
|
||||
@skipIfLinux # llvm.org/pr22411: Failure presumably due to known thread races
|
||||
def test_lldbmi_pendbreakonsrc(self):
|
||||
"""Test that 'lldb-mi --interpreter' works for pending source breakpoints."""
|
||||
|
||||
|
@ -55,6 +59,8 @@ class MiBreakpointTestCase(lldbmi_testcase.MiTestCaseBase):
|
|||
|
||||
@lldbmi_test
|
||||
@expectedFailureWindows("llvm.org/pr22274: need a pexpect replacement for windows")
|
||||
@skipIfFreeBSD # llvm.org/pr22411: Failure presumably due to known thread races
|
||||
@skipIfLinux # llvm.org/pr22411: Failure presumably due to known thread races
|
||||
def test_lldbmi_breakpoints(self):
|
||||
"""Test that 'lldb-mi --interpreter' works for breakpoints."""
|
||||
|
||||
|
|
|
@ -10,6 +10,8 @@ class MiDataTestCase(lldbmi_testcase.MiTestCaseBase):
|
|||
|
||||
@lldbmi_test
|
||||
@expectedFailureWindows("llvm.org/pr22274: need a pexpect replacement for windows")
|
||||
@skipIfFreeBSD # llvm.org/pr22411: Failure presumably due to known thread races
|
||||
@skipIfLinux # llvm.org/pr22411: Failure presumably due to known thread races
|
||||
def test_lldbmi_data_disassemble(self):
|
||||
"""Test that 'lldb-mi --interpreter' works for -data-disassemble."""
|
||||
|
||||
|
@ -37,6 +39,8 @@ class MiDataTestCase(lldbmi_testcase.MiTestCaseBase):
|
|||
|
||||
@lldbmi_test
|
||||
@expectedFailureWindows("llvm.org/pr22274: need a pexpect replacement for windows")
|
||||
@skipIfFreeBSD # llvm.org/pr22411: Failure presumably due to known thread races
|
||||
@skipIfLinux # llvm.org/pr22411: Failure presumably due to known thread races
|
||||
def test_lldbmi_data_read_memory_bytes(self):
|
||||
"""Test that 'lldb-mi --interpreter' works for -data-read-memory-bytes."""
|
||||
|
||||
|
@ -65,6 +69,8 @@ class MiDataTestCase(lldbmi_testcase.MiTestCaseBase):
|
|||
|
||||
@lldbmi_test
|
||||
@expectedFailureWindows("llvm.org/pr22274: need a pexpect replacement for windows")
|
||||
@skipIfFreeBSD # llvm.org/pr22411: Failure presumably due to known thread races
|
||||
@skipIfLinux # llvm.org/pr22411: Failure presumably due to known thread races
|
||||
def test_lldbmi_data_list_register_names(self):
|
||||
"""Test that 'lldb-mi --interpreter' works for -data-list-register-names."""
|
||||
|
||||
|
@ -91,6 +97,8 @@ class MiDataTestCase(lldbmi_testcase.MiTestCaseBase):
|
|||
|
||||
@lldbmi_test
|
||||
@expectedFailureWindows("llvm.org/pr22274: need a pexpect replacement for windows")
|
||||
@skipIfFreeBSD # llvm.org/pr22411: Failure presumably due to known thread races
|
||||
@skipIfLinux # llvm.org/pr22411: Failure presumably due to known thread races
|
||||
def test_lldbmi_data_list_register_values(self):
|
||||
"""Test that 'lldb-mi --interpreter' works for -data-list-register-values."""
|
||||
|
||||
|
|
|
@ -105,6 +105,8 @@ class MiExecTestCase(lldbmi_testcase.MiTestCaseBase):
|
|||
|
||||
@lldbmi_test
|
||||
@expectedFailureWindows("llvm.org/pr22274: need a pexpect replacement for windows")
|
||||
@skipIfFreeBSD # llvm.org/pr22411: Failure presumably due to known thread races
|
||||
@skipIfLinux # llvm.org/pr22411: Failure presumably due to known thread races
|
||||
def test_lldbmi_exec_arguments_reset(self):
|
||||
"""Test that 'lldb-mi --interpreter' can reset previously set args using -exec-arguments."""
|
||||
|
||||
|
@ -133,6 +135,8 @@ class MiExecTestCase(lldbmi_testcase.MiTestCaseBase):
|
|||
|
||||
@lldbmi_test
|
||||
@expectedFailureWindows("llvm.org/pr22274: need a pexpect replacement for windows")
|
||||
@skipIfFreeBSD # llvm.org/pr22411: Failure presumably due to known thread races
|
||||
@skipIfLinux # llvm.org/pr22411: Failure presumably due to known thread races
|
||||
def test_lldbmi_exec_next(self):
|
||||
"""Test that 'lldb-mi --interpreter' works for stepping."""
|
||||
|
||||
|
@ -184,6 +188,8 @@ class MiExecTestCase(lldbmi_testcase.MiTestCaseBase):
|
|||
|
||||
@lldbmi_test
|
||||
@expectedFailureWindows("llvm.org/pr22274: need a pexpect replacement for windows")
|
||||
@skipIfFreeBSD # llvm.org/pr22411: Failure presumably due to known thread races
|
||||
@skipIfLinux # llvm.org/pr22411: Failure presumably due to known thread races
|
||||
def test_lldbmi_exec_next_instruction(self):
|
||||
"""Test that 'lldb-mi --interpreter' works for instruction stepping."""
|
||||
|
||||
|
|
|
@ -10,6 +10,8 @@ class MiExitTestCase(lldbmi_testcase.MiTestCaseBase):
|
|||
|
||||
@lldbmi_test
|
||||
@expectedFailureWindows("llvm.org/pr22274: need a pexpect replacement for windows")
|
||||
@skipIfFreeBSD # llvm.org/pr22411: Failure presumably due to known thread races
|
||||
@skipIfLinux # llvm.org/pr22411: Failure presumably due to known thread races
|
||||
def test_lldbmi_gdbexit(self):
|
||||
"""Test that '-gdb-exit' terminates debug session and exits."""
|
||||
|
||||
|
@ -34,6 +36,8 @@ class MiExitTestCase(lldbmi_testcase.MiTestCaseBase):
|
|||
|
||||
@lldbmi_test
|
||||
@expectedFailureWindows("llvm.org/pr22274: need a pexpect replacement for windows")
|
||||
@skipIfFreeBSD # llvm.org/pr22411: Failure presumably due to known thread races
|
||||
@skipIfLinux # llvm.org/pr22411: Failure presumably due to known thread races
|
||||
def test_lldbmi_quit(self):
|
||||
"""Test that 'quit' exits immediately."""
|
||||
|
||||
|
|
|
@ -29,6 +29,8 @@ class MiInterpreterExecTestCase(lldbmi_testcase.MiTestCaseBase):
|
|||
|
||||
@lldbmi_test
|
||||
@expectedFailureWindows("llvm.org/pr22274: need a pexpect replacement for windows")
|
||||
@skipIfFreeBSD # llvm.org/pr22411: Failure presumably due to known thread races
|
||||
@skipIfLinux # llvm.org/pr22411: Failure presumably due to known thread races
|
||||
def test_lldbmi_breakpoint_set(self):
|
||||
"""Test that 'lldb-mi --interpreter' can set breakpoint by 'breakpoint set' command."""
|
||||
|
||||
|
@ -49,6 +51,8 @@ class MiInterpreterExecTestCase(lldbmi_testcase.MiTestCaseBase):
|
|||
|
||||
@lldbmi_test
|
||||
@expectedFailureWindows("llvm.org/pr22274: need a pexpect replacement for windows")
|
||||
@skipIfFreeBSD # llvm.org/pr22411: Failure presumably due to known thread races
|
||||
@skipIfLinux # llvm.org/pr22411: Failure presumably due to known thread races
|
||||
def test_lldbmi_settings_set_target_run_args_before(self):
|
||||
"""Test that 'lldb-mi --interpreter' can set target arguments by 'setting set target.run-args' command before than target was created."""
|
||||
|
||||
|
@ -75,6 +79,8 @@ class MiInterpreterExecTestCase(lldbmi_testcase.MiTestCaseBase):
|
|||
|
||||
@lldbmi_test
|
||||
@expectedFailureWindows("llvm.org/pr22274: need a pexpect replacement for windows")
|
||||
@skipIfFreeBSD # llvm.org/pr22411: Failure presumably due to known thread races
|
||||
@skipIfLinux # llvm.org/pr22411: Failure presumably due to known thread races
|
||||
def test_lldbmi_settings_set_target_run_args_after(self):
|
||||
"""Test that 'lldb-mi --interpreter' can set target arguments by 'setting set target.run-args' command after than target was created."""
|
||||
|
||||
|
@ -101,6 +107,8 @@ class MiInterpreterExecTestCase(lldbmi_testcase.MiTestCaseBase):
|
|||
|
||||
@lldbmi_test
|
||||
@expectedFailureWindows("llvm.org/pr22274: need a pexpect replacement for windows")
|
||||
@skipIfFreeBSD # llvm.org/pr22411: Failure presumably due to known thread races
|
||||
@skipIfLinux # llvm.org/pr22411: Failure presumably due to known thread races
|
||||
def test_lldbmi_process_launch(self):
|
||||
"""Test that 'lldb-mi --interpreter' can launch process by "process launch" command."""
|
||||
|
||||
|
@ -150,6 +158,8 @@ class MiInterpreterExecTestCase(lldbmi_testcase.MiTestCaseBase):
|
|||
|
||||
@lldbmi_test
|
||||
@expectedFailureWindows("llvm.org/pr22274: need a pexpect replacement for windows")
|
||||
@skipIfFreeBSD # llvm.org/pr22411: Failure presumably due to known thread races
|
||||
@skipIfLinux # llvm.org/pr22411: Failure presumably due to known thread races
|
||||
def test_lldbmi_thread_step_over(self):
|
||||
"""Test that 'lldb-mi --interpreter' can step over by "thread step-over" command."""
|
||||
|
||||
|
@ -174,6 +184,8 @@ class MiInterpreterExecTestCase(lldbmi_testcase.MiTestCaseBase):
|
|||
|
||||
@lldbmi_test
|
||||
@expectedFailureWindows("llvm.org/pr22274: need a pexpect replacement for windows")
|
||||
@skipIfFreeBSD # llvm.org/pr22411: Failure presumably due to known thread races
|
||||
@skipIfLinux # llvm.org/pr22411: Failure presumably due to known thread races
|
||||
def test_lldbmi_thread_continue(self):
|
||||
"""Test that 'lldb-mi --interpreter' can continue execution by "thread continue" command."""
|
||||
|
||||
|
|
|
@ -10,6 +10,8 @@ class MiLaunchTestCase(lldbmi_testcase.MiTestCaseBase):
|
|||
|
||||
@lldbmi_test
|
||||
@expectedFailureWindows("llvm.org/pr22274: need a pexpect replacement for windows")
|
||||
@skipIfFreeBSD # llvm.org/pr22411: Failure presumably due to known thread races
|
||||
@skipIfLinux # llvm.org/pr22411: Failure presumably due to known thread races
|
||||
def test_lldbmi_exe(self):
|
||||
"""Test that 'lldb-mi --interpreter' works for -file-exec-and-symbols exe."""
|
||||
|
||||
|
@ -25,6 +27,8 @@ class MiLaunchTestCase(lldbmi_testcase.MiTestCaseBase):
|
|||
|
||||
@lldbmi_test
|
||||
@expectedFailureWindows("llvm.org/pr22274: need a pexpect replacement for windows")
|
||||
@skipIfFreeBSD # llvm.org/pr22411: Failure presumably due to known thread races
|
||||
@skipIfLinux # llvm.org/pr22411: Failure presumably due to known thread races
|
||||
def test_lldbmi_abspathexe(self):
|
||||
"""Test that 'lldb-mi --interpreter' works for -file-exec-and-symbols fullpath/exe."""
|
||||
|
||||
|
@ -42,6 +46,8 @@ class MiLaunchTestCase(lldbmi_testcase.MiTestCaseBase):
|
|||
|
||||
@lldbmi_test
|
||||
@expectedFailureWindows("llvm.org/pr22274: need a pexpect replacement for windows")
|
||||
@skipIfFreeBSD # llvm.org/pr22411: Failure presumably due to known thread races
|
||||
@skipIfLinux # llvm.org/pr22411: Failure presumably due to known thread races
|
||||
def test_lldbmi_relpathexe(self):
|
||||
"""Test that 'lldb-mi --interpreter' works for -file-exec-and-symbols relpath/exe."""
|
||||
|
||||
|
@ -58,6 +64,8 @@ class MiLaunchTestCase(lldbmi_testcase.MiTestCaseBase):
|
|||
|
||||
@lldbmi_test
|
||||
@expectedFailureWindows("llvm.org/pr22274: need a pexpect replacement for windows")
|
||||
@skipIfFreeBSD # llvm.org/pr22411: Failure presumably due to known thread races
|
||||
@skipIfLinux # llvm.org/pr22411: Failure presumably due to known thread races
|
||||
def test_lldbmi_badpathexe(self):
|
||||
"""Test that 'lldb-mi --interpreter' works for -file-exec-and-symbols badpath/exe."""
|
||||
|
||||
|
|
|
@ -12,6 +12,8 @@ class MiNotificationTestCase(lldbmi_testcase.MiTestCaseBase):
|
|||
@skipIfFreeBSD # llvm.org/pr22411: Failure presumably due to known thread races
|
||||
@skipIfLinux # llvm.org/pr22411: Failure presumably due to known thread races
|
||||
@expectedFailureWindows("llvm.org/pr22274: need a pexpect replacement for windows")
|
||||
@skipIfFreeBSD # llvm.org/pr22411: Failure presumably due to known thread races
|
||||
@skipIfLinux # llvm.org/pr22411: Failure presumably due to known thread races
|
||||
def test_lldbmi_prompt(self):
|
||||
"""Test that 'lldb-mi --interpreter' echos '(gdb)' after commands and events."""
|
||||
|
||||
|
@ -131,6 +133,8 @@ class MiNotificationTestCase(lldbmi_testcase.MiTestCaseBase):
|
|||
|
||||
@lldbmi_test
|
||||
@expectedFailureWindows("llvm.org/pr22274: need a pexpect replacement for windows")
|
||||
@skipIfFreeBSD # llvm.org/pr22411: Failure presumably due to known thread races
|
||||
@skipIfLinux # llvm.org/pr22411: Failure presumably due to known thread races
|
||||
def test_lldbmi_stopped_when_segfault_local(self):
|
||||
"""Test that 'lldb-mi --interpreter' notifies after it was stopped when segfault occurred (local)."""
|
||||
|
||||
|
|
|
@ -10,6 +10,8 @@ class MiStackTestCase(lldbmi_testcase.MiTestCaseBase):
|
|||
|
||||
@lldbmi_test
|
||||
@expectedFailureWindows("llvm.org/pr22274: need a pexpect replacement for windows")
|
||||
@skipIfFreeBSD # llvm.org/pr22411: Failure presumably due to known thread races
|
||||
@skipIfLinux # llvm.org/pr22411: Failure presumably due to known thread races
|
||||
def test_lldbmi_stack_list_arguments(self):
|
||||
"""Test that 'lldb-mi --interpreter' can shows arguments."""
|
||||
|
||||
|
@ -46,6 +48,8 @@ class MiStackTestCase(lldbmi_testcase.MiTestCaseBase):
|
|||
|
||||
@lldbmi_test
|
||||
@expectedFailureWindows("llvm.org/pr22274: need a pexpect replacement for windows")
|
||||
@skipIfFreeBSD # llvm.org/pr22411: Failure presumably due to known thread races
|
||||
@skipIfLinux # llvm.org/pr22411: Failure presumably due to known thread races
|
||||
def test_lldbmi_stack_list_locals(self):
|
||||
"""Test that 'lldb-mi --interpreter' can shows local variables."""
|
||||
|
||||
|
@ -164,6 +168,8 @@ class MiStackTestCase(lldbmi_testcase.MiTestCaseBase):
|
|||
|
||||
@lldbmi_test
|
||||
@expectedFailureWindows("llvm.org/pr22274: need a pexpect replacement for windows")
|
||||
@skipIfFreeBSD # llvm.org/pr22411: Failure presumably due to known thread races
|
||||
@skipIfLinux # llvm.org/pr22411: Failure presumably due to known thread races
|
||||
def test_lldbmi_stack_info_depth(self):
|
||||
"""Test that 'lldb-mi --interpreter' can shows depth of the stack."""
|
||||
|
||||
|
@ -186,6 +192,8 @@ class MiStackTestCase(lldbmi_testcase.MiTestCaseBase):
|
|||
|
||||
@lldbmi_test
|
||||
@expectedFailureWindows("llvm.org/pr22274: need a pexpect replacement for windows")
|
||||
@skipIfFreeBSD # llvm.org/pr22411: Failure presumably due to known thread races
|
||||
@skipIfLinux # llvm.org/pr22411: Failure presumably due to known thread races
|
||||
def test_lldbmi_stack_list_frames(self):
|
||||
"""Test that 'lldb-mi --interpreter' can lists the frames on the stack."""
|
||||
|
||||
|
|
|
@ -10,6 +10,8 @@ class MiSyntaxTestCase(lldbmi_testcase.MiTestCaseBase):
|
|||
|
||||
@lldbmi_test
|
||||
@expectedFailureWindows("llvm.org/pr22274: need a pexpect replacement for windows")
|
||||
@skipIfFreeBSD # llvm.org/pr22411: Failure presumably due to known thread races
|
||||
@skipIfLinux # llvm.org/pr22411: Failure presumably due to known thread races
|
||||
def test_lldbmi_tokens(self):
|
||||
"""Test that 'lldb-mi --interpreter' echos command tokens."""
|
||||
|
||||
|
|
Loading…
Reference in New Issue