[lldb] [test] Update XFAILs/skips for FreeBSD
authorMichał Górny <mgorny@moritz.systems>
Tue, 3 Nov 2020 18:25:48 +0000 (19:25 +0100)
committerMichał Górny <mgorny@moritz.systems>
Tue, 3 Nov 2020 21:01:59 +0000 (22:01 +0100)
Update expected failures and test skips based on common results
for the old and new FreeBSD plugins.

18 files changed:
lldb/test/API/api/multiple-debuggers/TestMultipleDebuggers.py
lldb/test/API/api/multithreaded/TestMultithreaded.py
lldb/test/API/commands/expression/multiline-navigation/TestMultilineNavigation.py
lldb/test/API/commands/log/basic/TestLogging.py
lldb/test/API/commands/platform/process/list/TestProcessList.py
lldb/test/API/commands/process/launch/TestProcessLaunch.py
lldb/test/API/commands/target/create-deps/TestTargetCreateDeps.py
lldb/test/API/functionalities/breakpoint/breakpoint_callback_command_source/TestBreakpointCallbackCommandSource.py
lldb/test/API/functionalities/breakpoint/global_constructor/TestBreakpointInGlobalConstructor.py
lldb/test/API/functionalities/dlopen_other_executable/TestDlopenOtherExecutable.py
lldb/test/API/functionalities/memory-region/TestMemoryRegion.py
lldb/test/API/functionalities/thread/exit_during_expression/TestExitDuringExpression.py
lldb/test/API/functionalities/thread/state_after_expression/TestStateAfterExpression.py
lldb/test/API/lang/c/conflicting-symbol/TestConflictingSymbol.py
lldb/test/API/lang/cpp/thread_local/TestThreadLocal.py
lldb/test/API/tools/lldb-vscode/breakpoint/TestVSCode_setBreakpoints.py
lldb/test/API/tools/lldb-vscode/launch/TestVSCode_launch.py
lldb/test/Shell/Unwind/thread-step-out-ret-addr-check.test

index d3a69a1..1b12011 100644 (file)
@@ -19,6 +19,7 @@ class TestMultipleSimultaneousDebuggers(TestBase):
 
     @skipIfNoSBHeaders
     @skipIfWindows
+    @expectedFailureAll(oslist=['freebsd'])
     def test_multiple_debuggers(self):
         env = {self.dylibPath: self.getLLDBLibraryEnvVal()}
 
index 60c2c3b..1dc44b9 100644 (file)
@@ -31,6 +31,7 @@ class SBBreakpointCallbackCase(TestBase):
     @skipIfNoSBHeaders
     # clang-cl does not support throw or catch (llvm.org/pr24538)
     @skipIfWindows
+    @expectedFailureAll(oslist=['freebsd'])
     def test_python_stop_hook(self):
         """Test that you can run a python command in a stop-hook when stdin is File based. """
         self.build_and_test('driver.cpp test_stop-hook.cpp',
index 743e799..b932aba 100644 (file)
@@ -18,6 +18,7 @@ class TestCase(PExpectTest):
     # under ASAN on a loaded machine..
     @skipIfAsan
     @skipIfEditlineSupportMissing
+    @expectedFailureAll(oslist=['freebsd'])
     def test_nav_arrow_up(self):
         """Tests that we can navigate back to the previous line with the up arrow"""
         self.launch()
@@ -40,6 +41,7 @@ class TestCase(PExpectTest):
 
     @skipIfAsan
     @skipIfEditlineSupportMissing
+    @expectedFailureAll(oslist=['freebsd'])
     def test_nav_arrow_down(self):
         """Tests that we can navigate to the next line with the down arrow"""
         self.launch()
index 4ba67f8..da1a3e8 100644 (file)
@@ -93,6 +93,8 @@ class LogTestCase(TestBase):
 
     # Enable all log options and check that nothing crashes.
     @skipIfWindows
+    # TODO: figure out why it segfaults
+    @skipIfFreeBSD
     def test_all_log_options(self):
         if (os.path.exists(self.log_file)):
             os.remove(self.log_file)
index fe2ed74..1bc37b5 100644 (file)
@@ -19,6 +19,7 @@ class ProcessListTestCase(TestBase):
 
     @skipIfWindows  # https://bugs.llvm.org/show_bug.cgi?id=43702
     @skipIfRemote   # rdar://problem/66542336
+    @expectedFailureAll(oslist=['freebsd'])
     def test_process_list_with_args(self):
         """Test process list show process args"""
         self.build()
index 9e43c2c..83bc25d 100644 (file)
@@ -83,7 +83,7 @@ class ProcessLaunchTestCase(TestBase):
     # The process launch flag '-w' for setting the current working directory
     # not working?
     @not_remote_testsuite_ready
-    @expectedFailureAll(oslist=["linux"], bugnumber="llvm.org/pr20265")
+    @expectedFailureAll(oslist=["freebsd", "linux"], bugnumber="llvm.org/pr20265")
     @expectedFailureNetBSD
     @skipIfReproducer
     def test_set_working_dir_nonexisting(self):
index 31be1cc..0284318 100644 (file)
@@ -30,7 +30,7 @@ class TargetDependentsTestCase(TestBase):
             "image list", msg, matching=should_match, substrs=['[  1]'])
 
 
-    @expectedFailureAll(oslist=["linux"],
+    @expectedFailureAll(oslist=["freebsd", "linux"],
         triple=no_match(".*-android"))
         #linux does not support loading dependent files, but android does
     @expectedFailureNetBSD
@@ -40,7 +40,7 @@ class TargetDependentsTestCase(TestBase):
         self.runCmd("target create  " + exe, CURRENT_EXECUTABLE_SET)
         self.has_exactly_one_image(False)
 
-    @expectedFailureAll(oslist=["linux"],
+    @expectedFailureAll(oslist=["freebsd", "linux"],
         triple=no_match(".*-android"))
         #linux does not support loading dependent files, but android does
     @expectedFailureNetBSD
@@ -56,7 +56,7 @@ class TargetDependentsTestCase(TestBase):
         self.runCmd("target create -dtrue " + exe, CURRENT_EXECUTABLE_SET)
         self.has_exactly_one_image(True)
 
-    @expectedFailureAll(oslist=["linux"],
+    @expectedFailureAll(oslist=["freebsd", "linux"],
         triple=no_match(".*-android"))
         #linux does not support loading dependent files, but android does
     @expectedFailureNetBSD
@@ -94,7 +94,7 @@ class TargetDependentsTestCase(TestBase):
         self.runCmd("target create -dtrue " + lib, CURRENT_EXECUTABLE_SET)
         self.has_exactly_one_image(True)
 
-    @expectedFailureAll(oslist=["linux"],
+    @expectedFailureAll(oslist=["freebsd", "linux"],
         triple=no_match(".*-android"))
         #linux does not support loading dependent files, but android does
     @expectedFailureNetBSD
index fb7ae1d..8b20bed 100644 (file)
@@ -19,6 +19,8 @@ class BreakpointCallbackCommandSource(PExpectTest):
     # under ASAN on a loaded machine..
     @skipIfAsan
     @skipIfEditlineSupportMissing
+    # times out
+    @skipIfFreeBSD
     def test_breakpoint_callback_command_source(self):
         self.build()
         exe = self.getBuildArtifact("a.out")
index 4439607..372a915 100644 (file)
@@ -15,6 +15,7 @@ class TestBreakpointInGlobalConstructors(TestBase):
     mydir = TestBase.compute_mydir(__file__)
     NO_DEBUG_INFO_TESTCASE = True
 
+    @expectedFailureAll(oslist=["freebsd"])
     @expectedFailureNetBSD
     def test(self):
         self.build()
index 2ccfaea..2563f3a 100644 (file)
@@ -12,6 +12,7 @@ class TestCase(TestBase):
     # glibc's dlopen doesn't support opening executables.
     # https://sourceware.org/bugzilla/show_bug.cgi?id=11754
     @skipIfLinux
+    @expectedFailureAll(oslist=["freebsd"])
     @no_debug_info_test
     def test(self):
         self.build()
index 61e64d4..36984b3 100644 (file)
@@ -23,6 +23,7 @@ class MemoryCommandRegion(TestBase):
             'main.cpp',
             '// Run here before printing memory regions')
 
+    @expectedFailureAll(oslist=["freebsd"])
     def test(self):
         self.build()
 
index 260fe59..84c3094 100644 (file)
@@ -15,11 +15,13 @@ class TestExitDuringExpression(TestBase):
     NO_DEBUG_INFO_TESTCASE = True
 
     @skipIfWindows
+    @expectedFailureAll(oslist=["freebsd"])
     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"])
     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)
index b108d53..ef619e8 100644 (file)
@@ -15,6 +15,7 @@ class TestStopReasonAfterExpression(TestBase):
     mydir = TestBase.compute_mydir(__file__)
 
     @skipIfWindows
+    @expectedFailureAll(oslist=["freebsd"])
     def test_thread_state_after_expr(self):
         self.build()
         self.main_source_file = lldb.SBFileSpec("main.cpp")
index 9d088e3..13eae55 100644 (file)
@@ -18,7 +18,7 @@ class TestConflictingSymbols(TestBase):
         lldbutil.mkdir_p(self.getBuildArtifact("One"))
         lldbutil.mkdir_p(self.getBuildArtifact("Two"))
 
-    @expectedFailureAll(oslist=["windows"], bugnumber="llvm.org/pr24489")
+    @expectedFailureAll(oslist=["freebsd", "windows"], bugnumber="llvm.org/pr24489")
     @expectedFailureNetBSD
     def test_conflicting_symbols(self):
         self.build()
index b92ec90..765bf3b 100644 (file)
@@ -11,7 +11,7 @@ class PlatformProcessCrashInfoTestCase(TestBase):
 
     mydir = TestBase.compute_mydir(__file__)
 
-    @expectedFailureAll(oslist=["windows", "linux", "netbsd"])
+    @expectedFailureAll(oslist=["windows", "linux", "freebsd", "netbsd"])
     def test_thread_local(self):
         # Set a breakpoint on the first instruction of the main function,
         # before the TLS initialization has run.
index 23f4ad2..aa3d5f1 100644 (file)
@@ -25,6 +25,7 @@ class TestVSCode_setBreakpoints(lldbvscode_testcase.VSCodeTestCaseBase):
 
     @skipIfWindows
     @skipIfRemote
+    @expectedFailureAll(oslist=["freebsd"])
     def test_source_map(self):
         self.build_and_create_debug_adaptor()
 
@@ -89,6 +90,7 @@ class TestVSCode_setBreakpoints(lldbvscode_testcase.VSCodeTestCaseBase):
 
     @skipIfWindows
     @skipIfRemote
+    @expectedFailureAll(oslist=["freebsd"])
     def test_set_and_clear(self):
         '''Tests setting and clearing source file and line breakpoints.
            This packet is a bit tricky on the debug adaptor side since there
@@ -221,6 +223,7 @@ class TestVSCode_setBreakpoints(lldbvscode_testcase.VSCodeTestCaseBase):
 
     @skipIfWindows
     @skipIfRemote
+    @expectedFailureAll(oslist=["freebsd"])
     def test_clear_breakpoints_unset_breakpoints(self):
         '''Test clearing breakpoints like test_set_and_clear, but clear
            breakpoints by omitting the breakpoints array instead of sending an
@@ -263,6 +266,7 @@ class TestVSCode_setBreakpoints(lldbvscode_testcase.VSCodeTestCaseBase):
 
     @skipIfWindows
     @skipIfRemote
+    @expectedFailureAll(oslist=["freebsd"])
     def test_functionality(self):
         '''Tests hitting breakpoints and the functionality of a single
            breakpoint, like 'conditions' and 'hitCondition' settings.'''
index b63eb6e..c3b7f16 100644 (file)
@@ -182,6 +182,7 @@ class TestVSCode_launch(lldbvscode_testcase.VSCodeTestCaseBase):
     @skipIfWindows
     @skipIfLinux # shell argument expansion doesn't seem to work on Linux
     @expectedFailureNetBSD
+    @expectedFailureAll(oslist=["freebsd"])
     @skipIfRemote
     def test_shellExpandArguments_enabled(self):
         '''
index 682b0e5..113922e 100644 (file)
@@ -3,6 +3,7 @@
 
 # REQUIRES: target-x86_64
 # UNSUPPORTED: system-windows
+# XFAIL: system-freebsd
 
 # RUN: %clang_host %p/Inputs/call-asm.c -x assembler-with-cpp %p/Inputs/thread-step-out-ret-addr-check.s -o %t
 # RUN: not %lldb %t -s %s -b 2>&1 | FileCheck %s