Author: tcwg Date: 2023-05-29T17:39:36+04:00 New Revision: ab05d9134d18db34501985a01fbfc02609767587
URL: https://github.com/llvm/llvm-project/commit/ab05d9134d18db34501985a01fbfc02609767587 DIFF: https://github.com/llvm/llvm-project/commit/ab05d9134d18db34501985a01fbfc02609767587.diff LOG: Revert "[LLDB] Add/Remove xfail for some API tests on Windows" This reverts commit 6ea1a0d4fc3823de143a288df2059b48dc01cf72. It again marks XFAIL LLDB tests failing after c384fcd3ea1dad782eaaea89b32fc33c0c3528b8 Added: Modified: lldb/test/API/commands/expression/save_jit_objects/TestSaveJITObjects.py lldb/test/API/functionalities/breakpoint/scripted_bkpt/TestScriptedResolver.py lldb/test/API/functionalities/inline-stepping/TestInlineStepping.py lldb/test/API/functionalities/step-avoids-no-debug/TestStepNoDebug.py lldb/test/API/lang/c/step-target/TestStepTarget.py lldb/test/API/lang/cpp/global_variables/TestCPPGlobalVariables.py lldb/test/API/lang/cpp/namespace/TestNamespace.py lldb/test/API/lang/cpp/static_members/TestCPPStaticMembers.py lldb/test/API/python_api/function_symbol/TestDisasmAPI.py lldb/test/API/python_api/function_symbol/TestSymbolAPI.py lldb/test/API/python_api/symbol-context/TestSymbolContext.py lldb/test/API/python_api/target/TestTargetAPI.py lldb/test/API/python_api/value/TestValueAPI.py Removed: ################################################################################ diff --git a/lldb/test/API/commands/expression/save_jit_objects/TestSaveJITObjects.py b/lldb/test/API/commands/expression/save_jit_objects/TestSaveJITObjects.py index 48377a75d23bb..438b92cdc4846 100644 --- a/lldb/test/API/commands/expression/save_jit_objects/TestSaveJITObjects.py +++ b/lldb/test/API/commands/expression/save_jit_objects/TestSaveJITObjects.py @@ -22,6 +22,7 @@ def cleanJITFiles(self): os.remove(j) return + @expectedFailureAll(oslist=["windows"]) def test_save_jit_objects(self): self.build() os.chdir(self.getBuildDir()) diff --git a/lldb/test/API/functionalities/breakpoint/scripted_bkpt/TestScriptedResolver.py b/lldb/test/API/functionalities/breakpoint/scripted_bkpt/TestScriptedResolver.py index 745700a14a3f0..9f477f951cd86 100644 --- a/lldb/test/API/functionalities/breakpoint/scripted_bkpt/TestScriptedResolver.py +++ b/lldb/test/API/functionalities/breakpoint/scripted_bkpt/TestScriptedResolver.py @@ -12,17 +12,20 @@ class TestScriptedResolver(TestBase): NO_DEBUG_INFO_TESTCASE = True + @expectedFailureAll(oslist=["windows"], bugnumber="llvm.org/pr24528") def test_scripted_resolver(self): """Use a scripted resolver to set a by symbol name breakpoint""" self.build() self.do_test() + @expectedFailureAll(oslist=["windows"], bugnumber="llvm.org/pr24528") def test_search_depths(self): """Make sure we are called at the right depths depending on what we return from __get_depth__""" self.build() self.do_test_depths() + @expectedFailureAll(oslist=["windows"], bugnumber="llvm.org/pr24528") def test_command_line(self): """Test setting a resolver breakpoint from the command line""" self.build() diff --git a/lldb/test/API/functionalities/inline-stepping/TestInlineStepping.py b/lldb/test/API/functionalities/inline-stepping/TestInlineStepping.py index ae4847bb788fe..49a72c2863e74 100644 --- a/lldb/test/API/functionalities/inline-stepping/TestInlineStepping.py +++ b/lldb/test/API/functionalities/inline-stepping/TestInlineStepping.py @@ -25,7 +25,8 @@ def test_step_over_with_python_api(self): self.build() self.inline_stepping_step_over() - @add_test_categories(["pyapi"]) + @add_test_categories(['pyapi']) + @expectedFailureAll(oslist=["windows"], bugnumber="llvm.org/pr32343") def test_step_in_template_with_python_api(self): """Test stepping in to templated functions.""" self.build() diff --git a/lldb/test/API/functionalities/step-avoids-no-debug/TestStepNoDebug.py b/lldb/test/API/functionalities/step-avoids-no-debug/TestStepNoDebug.py index 1d4a0008f6b44..6c399b8a0a1b2 100644 --- a/lldb/test/API/functionalities/step-avoids-no-debug/TestStepNoDebug.py +++ b/lldb/test/API/functionalities/step-avoids-no-debug/TestStepNoDebug.py @@ -10,7 +10,9 @@ class StepAvoidsNoDebugTestCase(TestBase): - @add_test_categories(["pyapi"]) + + @add_test_categories(['pyapi']) + @expectedFailureAll(archs=["aarch64"], oslist=["windows"], bugnumber="llvm.org/pr56292") def test_step_out_with_python(self): """Test stepping out using avoid-no-debug with dsyms.""" self.build() @@ -24,8 +26,8 @@ def test_step_out_with_python(self): compiler_version=[">=", "3.9"], archs=["i386"], oslist=no_match(["freebsd"]), - bugnumber="llvm.org/pr28549", - ) + bugnumber="llvm.org/pr28549") + @expectedFailureAll(archs=["aarch64"], oslist=["windows"], bugnumber="llvm.org/pr56292") def test_step_over_with_python(self): """Test stepping over using avoid-no-debug with dwarf.""" self.build() @@ -39,8 +41,8 @@ def test_step_over_with_python(self): compiler_version=[">=", "3.9"], archs=["i386"], oslist=no_match(["freebsd"]), - bugnumber="llvm.org/pr28549", - ) + bugnumber="llvm.org/pr28549") + @expectedFailureAll(archs=["aarch64"], oslist=["windows"], bugnumber="llvm.org/pr56292") def test_step_in_with_python(self): """Test stepping in using avoid-no-debug with dwarf.""" self.build() diff --git a/lldb/test/API/lang/c/step-target/TestStepTarget.py b/lldb/test/API/lang/c/step-target/TestStepTarget.py index 457dba15e2ca0..2da0a7894655d 100644 --- a/lldb/test/API/lang/c/step-target/TestStepTarget.py +++ b/lldb/test/API/lang/c/step-target/TestStepTarget.py @@ -45,6 +45,7 @@ def get_to_start(self): thread = threads[0] return thread + @expectedFailureAll(oslist=["windows"], bugnumber="llvm.org/pr32343") def test_with_end_line(self): """Test stepping over vrs. hitting breakpoints & subsequent stepping in various forms.""" @@ -56,6 +57,7 @@ def test_with_end_line(self): self.assertEqual(frame.name, "lotsOfArgs", "Stepped to lotsOfArgs.") + @expectedFailureAll(oslist=["windows"], bugnumber="llvm.org/pr32343") def test_with_end_line_bad_name(self): """Test stepping over vrs. hitting breakpoints & subsequent stepping in various forms.""" @@ -78,6 +80,7 @@ def test_with_end_line_deeper(self): frame = thread.frames[0] self.assertEqual(frame.name, "modifyInt", "Stepped to modifyInt.") + @expectedFailureAll(oslist=["windows"], bugnumber="llvm.org/pr32343") def test_with_command_and_block(self): """Test stepping over vrs. hitting breakpoints & subsequent stepping in various forms.""" @@ -92,6 +95,7 @@ def test_with_command_and_block(self): frame = thread.frames[0] self.assertEqual(frame.name, "lotsOfArgs", "Stepped to lotsOfArgs.") + @expectedFailureAll(oslist=["windows"], bugnumber="llvm.org/pr32343") def test_with_command_and_block_and_bad_name(self): """Test stepping over vrs. hitting breakpoints & subsequent stepping in various forms.""" diff --git a/lldb/test/API/lang/cpp/global_variables/TestCPPGlobalVariables.py b/lldb/test/API/lang/cpp/global_variables/TestCPPGlobalVariables.py index 1a811130a7eac..9d964634adbbd 100644 --- a/lldb/test/API/lang/cpp/global_variables/TestCPPGlobalVariables.py +++ b/lldb/test/API/lang/cpp/global_variables/TestCPPGlobalVariables.py @@ -75,6 +75,7 @@ def test(self): ) self.assertEqual(var.GetValue(), "100") + @expectedFailureAll(oslist=["windows"], bugnumber="llvm.org/pr24764") def test_access_by_mangled_name(self): self.build() diff --git a/lldb/test/API/lang/cpp/namespace/TestNamespace.py b/lldb/test/API/lang/cpp/namespace/TestNamespace.py index 1dc9d00fcd993..960cdac06deae 100644 --- a/lldb/test/API/lang/cpp/namespace/TestNamespace.py +++ b/lldb/test/API/lang/cpp/namespace/TestNamespace.py @@ -37,7 +37,6 @@ def test_breakpoints_func_auto(self): ) @expectedFailureAll(bugnumber="llvm.org/pr28548", compiler="gcc") - @expectedFailureAll(oslist=["windows"]) def test_breakpoints_func_full(self): """Test that we can set breakpoints correctly by fullname to find all functions whose fully qualified name is "func" (no namespaces).""" diff --git a/lldb/test/API/lang/cpp/static_members/TestCPPStaticMembers.py b/lldb/test/API/lang/cpp/static_members/TestCPPStaticMembers.py index 6eb5d46b5d97c..33685d61b7168 100644 --- a/lldb/test/API/lang/cpp/static_members/TestCPPStaticMembers.py +++ b/lldb/test/API/lang/cpp/static_members/TestCPPStaticMembers.py @@ -44,6 +44,8 @@ def test_access_without_scope(self): startstr="error: use of undeclared identifier 's_d'", ) + # We fail to lookup static members on Windows. + @expectedFailureAll(oslist=["windows"]) def test_no_crash_in_IR_arithmetic(self): """ Test that LLDB doesn't crash on evaluating specific expression involving diff --git a/lldb/test/API/python_api/function_symbol/TestDisasmAPI.py b/lldb/test/API/python_api/function_symbol/TestDisasmAPI.py index 75b9082f7ab1b..572d76e17c768 100644 --- a/lldb/test/API/python_api/function_symbol/TestDisasmAPI.py +++ b/lldb/test/API/python_api/function_symbol/TestDisasmAPI.py @@ -20,6 +20,7 @@ def setUp(self): "main.c", "// Find the line number for breakpoint 2 here." ) + @expectedFailureAll(oslist=["windows"], bugnumber='llvm.org/pr21765') def test(self): """Exercise getting SBAddress objects, disassembly, and SBAddress APIs.""" self.build() diff --git a/lldb/test/API/python_api/function_symbol/TestSymbolAPI.py b/lldb/test/API/python_api/function_symbol/TestSymbolAPI.py index fb6073bbd26ee..04c807bbb76a5 100644 --- a/lldb/test/API/python_api/function_symbol/TestSymbolAPI.py +++ b/lldb/test/API/python_api/function_symbol/TestSymbolAPI.py @@ -20,6 +20,7 @@ def setUp(self): "main.c", "// Find the line number for breakpoint 2 here." ) + @expectedFailureAll(oslist=["windows"], bugnumber='llvm.org/pr21765') def test(self): """Exercise some SBSymbol and SBAddress APIs.""" self.build() diff --git a/lldb/test/API/python_api/symbol-context/TestSymbolContext.py b/lldb/test/API/python_api/symbol-context/TestSymbolContext.py index 7674d10d771fa..4c125779f60bb 100644 --- a/lldb/test/API/python_api/symbol-context/TestSymbolContext.py +++ b/lldb/test/API/python_api/symbol-context/TestSymbolContext.py @@ -17,6 +17,7 @@ def setUp(self): "main.c", '// Find the line number of function "c" here.' ) + @expectedFailureAll(oslist=["windows"], bugnumber="llvm.org/pr24778") def test(self): """Exercise SBSymbolContext API extensively.""" self.build() diff --git a/lldb/test/API/python_api/target/TestTargetAPI.py b/lldb/test/API/python_api/target/TestTargetAPI.py index c1fed81dd8c55..c9e7e80a400b6 100644 --- a/lldb/test/API/python_api/target/TestTargetAPI.py +++ b/lldb/test/API/python_api/target/TestTargetAPI.py @@ -42,6 +42,7 @@ def test_find_compile_units(self): self.setTearDownCleanup(dictionary=d) self.find_compile_units(self.getBuildArtifact("b.out")) + @expectedFailureAll(oslist=["windows"], bugnumber="llvm.org/pr24778") def test_find_functions(self): """Exercise SBTarget.FindFunctions() API.""" d = {"EXE": "b.out"} @@ -54,6 +55,7 @@ def test_get_description(self): self.build() self.get_description() + @expectedFailureAll(oslist=["windows"], bugnumber='llvm.org/pr21765') def test_resolve_symbol_context_with_address(self): """Exercise SBTarget.ResolveSymbolContextForAddress() API.""" self.build() diff --git a/lldb/test/API/python_api/value/TestValueAPI.py b/lldb/test/API/python_api/value/TestValueAPI.py index 57139f7d2d84b..dc68eb6c5748d 100644 --- a/lldb/test/API/python_api/value/TestValueAPI.py +++ b/lldb/test/API/python_api/value/TestValueAPI.py @@ -17,6 +17,7 @@ def setUp(self): # Find the line number to of function 'c'. self.line = line_number("main.c", "// Break at this line") + @expectedFailureAll(oslist=["windows"], bugnumber="llvm.org/pr24772") def test(self): """Exercise some SBValue APIs.""" d = {"EXE": self.exe_name} _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits