Skip to content

Commit

Permalink
[lldb] [test] Update test status for NetBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
mgorny committed Dec 20, 2020
1 parent 41ab45d commit 9956233
Show file tree
Hide file tree
Showing 40 changed files with 22 additions and 32 deletions.
1 change: 1 addition & 0 deletions lldb/test/API/api/multiple-targets/TestMultipleTargets.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class TestMultipleTargets(TestBase):
@expectedFailureAll(
oslist=["windows"],
bugnumber="llvm.org/pr20282")
@expectedFlakeyNetBSD
def test_multiple_targets(self):
env = {self.dylibPath: self.getLLDBLibraryEnvVal()}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def setUp(self):
@skipIfDarwin # llvm.org/pr19246: intermittent failure
@skipIfWindows # Test relies on signals, unsupported on Windows
@expectedFlakeyAndroid(bugnumber="llvm.org/pr19246")
@expectedFailureNetBSD
@expectedFlakeyNetBSD
def test(self):
"""Test calling function that hits a signal and restarts."""
self.build()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ def build_and_run(self):
@expectedFailureAll(
oslist=['windows'],
bugnumber="http://llvm.org/pr21765")
@expectedFailureNetBSD
def test_ir_interpreter(self):
self.build_and_run()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ class Radar9531204TestCase(TestBase):
mydir = TestBase.compute_mydir(__file__)

# rdar://problem/9531204
@expectedFailureNetBSD
def test_expr_commands(self):
"""The evaluating printf(...) after break stop and then up a stack frame."""
self.build()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ def cleanJITFiles(self):
return

@expectedFailureAll(oslist=["windows"])
@expectedFailureNetBSD
def test_save_jit_objects(self):
self.build()
os.chdir(self.getBuildDir())
Expand Down
1 change: 0 additions & 1 deletion lldb/test/API/commands/expression/test/TestExprs.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,6 @@ def test_evaluate_expression_python(self):
# rdar://problem/8686536
# CommandInterpreter::HandleCommand is stripping \'s from input for
# WantsRawCommand commands
@expectedFailureNetBSD
def test_expr_commands_can_handle_quotes(self):
"""Throw some expression commands with quotes at lldb."""
self.build()
Expand Down
1 change: 1 addition & 0 deletions lldb/test/API/commands/gui/viewlarge/TestGuiViewLarge.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class GuiViewLargeCommandTest(PExpectTest):
@skipIfAsan
@skipIfCursesSupportMissing
@skipIfRemote # "run" command will not work correctly for remote debug
@expectedFailureNetBSD
def test_gui(self):
self.build()

Expand Down
1 change: 1 addition & 0 deletions lldb/test/API/commands/process/attach/TestProcessAttach.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ def test_attach_to_process_by_name(self):
process = target.GetProcess()
self.assertTrue(process, PROCESS_IS_VALID)

@expectedFailureNetBSD
def test_attach_to_process_by_id_correct_executable_offset(self):
"""
Test that after attaching to a process the executable offset
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,13 @@ class TestCPPExceptionBreakpoint (TestBase):

@add_test_categories(['pyapi'])
@expectedFailureAll(oslist=["windows"], bugnumber="llvm.org/pr24538")
@expectedFailureNetBSD
def test_cpp_exception_breakpoint(self):
"""Test setting and hitting the C++ exception breakpoint."""
self.build()
self.do_cpp_exception_bkpt()

@add_test_categories(['pyapi'])
@expectedFailureAll(oslist=["windows"], bugnumber="llvm.org/pr24538")
@expectedFailureNetBSD
def test_dummy_target_cpp_exception_breakpoint(self):
"""Test setting and hitting the C++ exception breakpoint from dummy target."""
self.build()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ class TestBreakpointInGlobalConstructors(TestBase):
mydir = TestBase.compute_mydir(__file__)
NO_DEBUG_INFO_TESTCASE = True

@expectedFailureNetBSD
def test(self):
self.build()
self.line_foo = line_number('foo.cpp', '// !BR_foo')
Expand Down
1 change: 1 addition & 0 deletions lldb/test/API/functionalities/completion/TestCompletion.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ def test_help_watchpoint_s(self):
"""Test that 'help watchpoint s' completes to 'help watchpoint set '."""
self.complete_from_to('help watchpoint s', 'help watchpoint set ')

@expectedFailureNetBSD
def test_common_complete_watchpoint_ids(self):
subcommands = ['enable', 'disable', 'delete', 'modify', 'ignore']

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class TestCase(TestBase):
@skipIfLinux
# freebsd's dlopen ditto
@expectedFailureAll(oslist=["freebsd"])
@expectedFailureNetBSD
@no_debug_info_test
def test(self):
self.build()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ class AssertingInferiorTestCase(TestBase):
archs=["arm"],
bugnumber="llvm.org/pr25338")
@expectedFailureAll(bugnumber="llvm.org/pr26592", triple='^mips')
@expectedFailureNetBSD
def test_inferior_asserting(self):
"""Test that lldb reliably catches the inferior asserting (command)."""
self.build()
Expand Down Expand Up @@ -52,7 +51,6 @@ def test_inferior_asserting_register(self):
triple=no_match(".*-android"),
bugnumber="llvm.org/pr25338")
@expectedFailureAll(bugnumber="llvm.org/pr26592", triple='^mips')
@expectedFailureNetBSD
def test_inferior_asserting_disassemble(self):
"""Test that lldb reliably disassembles frames after asserting (command)."""
self.build()
Expand All @@ -76,7 +74,6 @@ def test_inferior_asserting_python(self):
triple=no_match(".*-android"),
bugnumber="llvm.org/pr25338")
@expectedFailureAll(bugnumber="llvm.org/pr26592", triple='^mips')
@expectedFailureNetBSD
def test_inferior_asserting_expr(self):
"""Test that the lldb expression interpreter can read from the inferior after asserting (command)."""
self.build()
Expand All @@ -91,7 +88,6 @@ def test_inferior_asserting_expr(self):
triple=no_match(".*-android"),
bugnumber="llvm.org/pr25338")
@expectedFailureAll(bugnumber="llvm.org/pr26592", triple='^mips')
@expectedFailureNetBSD
def test_inferior_asserting_step(self):
"""Test that lldb functions correctly after stepping through a call to assert()."""
self.build()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ def test_recursive_inferior_crashing_step(self):

@skipIfTargetAndroid() # debuggerd interferes with this test on Android
@expectedFailureAll(oslist=["windows"], bugnumber="llvm.org/pr24778")
@expectedFailureNetBSD
def test_recursive_inferior_crashing_step_after_break(self):
"""Test that lldb functions correctly after stepping through a crash."""
self.build()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ class ConcurrentBreakpointDelayBreakpointOneSignal(ConcurrentEventsBase):

# Atomic sequences are not supported yet for MIPS in LLDB.
@skipIf(triple='^mips')
@expectedFailureNetBSD
def test(self):
"""Test two threads that trigger a breakpoint (one with a 1 second delay) and one signal thread. """
self.build(dictionary=self.getBuildFlags())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class ConcurrentSignalDelayBreak(ConcurrentEventsBase):

# Atomic sequences are not supported yet for MIPS in LLDB.
@skipIf(triple='^mips')
@expectedFailureNetBSD
@expectedFlakeyNetBSD
def test(self):
"""Test signal and a (1 second delay) breakpoint in multiple threads."""
self.build(dictionary=self.getBuildFlags())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class ConcurrentTwoBreakpointsOneDelaySignal(ConcurrentEventsBase):

# Atomic sequences are not supported yet for MIPS in LLDB.
@skipIf(triple='^mips')
@expectedFailureNetBSD
@expectedFlakeyNetBSD
def test(self):
"""Test two threads that trigger a breakpoint and one (1 second delay) signal thread. """
self.build(dictionary=self.getBuildFlags())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class ConcurrentTwoBreakpointsOneSignal(ConcurrentEventsBase):

# Atomic sequences are not supported yet for MIPS in LLDB.
@skipIf(triple='^mips')
@expectedFailureNetBSD
@expectedFlakeyNetBSD
def test(self):
"""Test two threads that trigger a breakpoint and one signal thread. """
self.build(dictionary=self.getBuildFlags())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@ class TestExitDuringExpression(TestBase):

@skipIfWindows
@expectedFailureAll(oslist=["freebsd"], bugnumber="llvm.org/pr48414")
@expectedFailureNetBSD
def test_exit_before_one_thread_unwind(self):
"""Test the case where we exit within the one thread timeout"""
self.exiting_expression_test(True, True)

@skipIfWindows
@expectedFailureAll(oslist=["freebsd"], bugnumber="llvm.org/pr48414")
@expectedFailureNetBSD
def test_exit_before_one_thread_no_unwind(self):
"""Test the case where we exit within the one thread timeout"""
self.exiting_expression_test(True, False)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class TestStopReasonAfterExpression(TestBase):

@skipIfWindows
@expectedFailureAll(oslist=["freebsd"], bugnumber="llvm.org/pr48415")
@expectedFlakeyNetBSD
def test_thread_state_after_expr(self):
self.build()
self.main_source_file = lldb.SBFileSpec("main.cpp")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class ThreadSpecificBreakPlusConditionTestCase(TestBase):
# hits break in another thread in testrun
@add_test_categories(['pyapi'])
@expectedFailureAll(oslist=['ios', 'watchos', 'tvos', 'bridgeos'], archs=['armv7', 'armv7k'], bugnumber='rdar://problem/34563348') # Two threads seem to end up with the same my_value when built for armv7.
@expectedFailureNetBSD
@expectedFlakeyNetBSD
def test_python(self):
"""Test that we obey thread conditioned breakpoints."""
self.build()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ class NoreturnUnwind(TestBase):
# clang does not preserve LR in noreturn functions, making unwinding impossible
@skipIf(compiler="clang", archs=['arm'], oslist=['linux'])
@expectedFailureAll(bugnumber="llvm.org/pr33452", triple='^mips')
@expectedFailureNetBSD
def test(self):
"""Test that we can backtrace correctly with 'noreturn' functions on the stack"""
self.build()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ def setUp(self):

@expectedFailureAll(oslist=["windows"], bugnumber="llvm.org/pr24489")
@expectedFailureAll(oslist=["freebsd"], bugnumber="llvm.org/pr48416")
@expectedFailureNetBSD
def test_conflicting_symbols(self):
self.build()
exe = self.getBuildArtifact("a.out")
Expand Down
1 change: 0 additions & 1 deletion lldb/test/API/lang/c/const_variables/TestConstVariables.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ class ConstVariableTestCase(TestBase):
@expectedFailureAll(
oslist=["windows"],
bugnumber="llvm.org/pr24489: Name lookup not working correctly on Windows")
@expectedFailureNetBSD
def test_and_run_command(self):
"""Test interpreted and JITted expressions on constant values."""
self.build()
Expand Down
1 change: 0 additions & 1 deletion lldb/test/API/lang/c/function_types/TestFunctionTypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ def test(self):
])

@expectedFailureAll(oslist=["windows"], bugnumber="llvm.org/pr21765")
@expectedFailureNetBSD
def test_pointers(self):
"""Test that a function pointer to 'printf' works and can be called."""
self.build()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ def test_without_process(self):
substrs=['42'])

@expectedFailureAll(oslist=["windows"], bugnumber="llvm.org/pr24764")
@expectedFailureNetBSD
def test_c_global_variables(self):
"""Test 'frame variable --scope --no-args' which omits args and shows scopes."""
self.build()
Expand Down
2 changes: 0 additions & 2 deletions lldb/test/API/lang/c/shared_lib/TestSharedLib.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,10 @@ def common_test_expr(self, preload_symbols):
"expression GetMeASubFoo(my_foo_ptr)",
startstr="(sub_foo *) $")

@expectedFailureNetBSD
def test_expr(self):
"""Test that types work when defined in a shared library and forward-declared in the main executable"""
self.common_test_expr(True)

@expectedFailureNetBSD
def test_expr_no_preload(self):
"""Test that types work when defined in a shared library and forward-declared in the main executable, but with preloading disabled"""
self.common_test_expr(False)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ def setUp(self):
@expectedFailureAll(
oslist=["windows"],
bugnumber="llvm.org/pr24538, clang-cl does not support throw or catch")
@expectedFailureNetBSD
def test(self):
"""Test lldb exception breakpoint command for CPP."""
self.build()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ class NamespaceDefinitionsTestCase(TestBase):
bugnumber="llvm.org/pr28948",
oslist=['linux'], compiler="gcc", archs=['arm','aarch64'])
@expectedFailureAll(oslist=["windows"])
@expectedFailureNetBSD
def test_expr(self):
self.build()
self.common_setup()
Expand Down
1 change: 0 additions & 1 deletion lldb/test/API/lang/cpp/stl/TestStdCXXDisassembly.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ class StdCXXDisassembleTestCase(TestBase):
mydir = TestBase.compute_mydir(__file__)

@skipIfWindows
@expectedFailureNetBSD
def test_stdcxx_disasm(self):
"""Do 'disassemble' on each and every 'Code' symbol entry from the std c++ lib."""
self.build()
Expand Down
1 change: 0 additions & 1 deletion lldb/test/API/lang/cpp/this/TestCPPThis.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ class CPPThisTestCase(TestBase):
@expectedFailureAll(
oslist=["windows"],
bugnumber="llvm.org/pr24489: Name lookup not working correctly on Windows")
@expectedFailureNetBSD
def test_with_run_command(self):
"""Test that the appropriate member variables are available when stopped in C++ static, inline, and const methods"""
self.build()
Expand Down
2 changes: 1 addition & 1 deletion lldb/test/API/python_api/event/TestEvents.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def run(self):
bugnumber="llvm.org/pr23617 Flaky, fails ~1/10 cases")
@skipIfWindows # This is flakey on Windows AND when it fails, it hangs: llvm.org/pr38373
@expectedFailureAll(oslist=["freebsd"], bugnumber="llvm.org/pr48417")
@expectedFlakeyNetBSD
@expectedFailureNetBSD
def test_add_listener_to_broadcaster(self):
"""Exercise some SBBroadcaster APIs."""
self.build()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ def setUp(self):
'main.cpp', '// Set break point at this line.')

@add_test_categories(['pyapi'])
@expectedFailureNetBSD
def test_iter_registers(self):
"""Test iterator works correctly for lldbutil.iter_registers()."""
self.build()
Expand Down
1 change: 0 additions & 1 deletion lldb/test/API/python_api/thread/TestThreadAPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ def test_run_to_address(self):
@add_test_categories(['pyapi'])
@expectedFailureAll(oslist=["linux"], archs=['arm'], bugnumber="llvm.org/pr45892")
@expectedFailureAll(oslist=["windows"])
@expectedFailureNetBSD
def test_step_out_of_malloc_into_function_b(self):
"""Test Python SBThread.StepOut() API to step out of a malloc call where the call site is at function b()."""
# We build a different executable than the default build() does.
Expand Down
2 changes: 2 additions & 0 deletions lldb/test/API/tools/lldb-server/TestGdbRemote_vContThreads.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ def test_signal_one_thread_debugserver(self):
self.signal_one_thread()

@skipUnlessPlatform(["netbsd"])
@expectedFailureNetBSD
@llgs_test
def test_signal_one_thread_llgs(self):
self.build()
Expand Down Expand Up @@ -79,6 +80,7 @@ def test_signal_all_threads_debugserver(self):
self.signal_all_threads()

@skipUnlessPlatform(["netbsd"])
@expectedFailureNetBSD
@llgs_test
def test_signal_all_threads_llgs(self):
self.build()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ class TestVSCode_setExceptionBreakpoints(
mydir = TestBase.compute_mydir(__file__)

@skipIfWindows
@expectedFailureNetBSD
@skipIfRemote
def test_functionality(self):
'''Tests setting and clearing exception breakpoints.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ def test_launch(self):
@skipIfDarwin
@skipIfWindows
@skipIfRemote
@expectedFailureNetBSD
def test_attach(self):
"""
This test attaches to a process that creates a file. We attach and disconnect
Expand Down
1 change: 1 addition & 0 deletions lldb/test/Shell/Recognizer/assert.test
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# XFAIL: target-arm && linux-gnu
# XFAIL: system-freebsd
# XFAIL: system-netbsd
# UNSUPPORTED: system-windows
# RUN: %clang_host -g -O0 %S/Inputs/assert.c -o %t.out
# RUN: %lldb -b -s %s %t.out | FileCheck %s
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# UNSUPPORTED: system-freebsd
# XFAIL: system-netbsd
# UNSUPPORTED: system-netbsd

# Flaky
# UNSUPPORTED: system-linux
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# REQUIRES: lua
# XFAIL: system-netbsd
# RUN: echo "int main() { return 0; }" | %clang_host -x c - -o %t
# RUN: %lldb -s %s --script-language lua %t 2>&1 | FileCheck %s
b main
Expand Down

0 comments on commit 9956233

Please sign in to comment.