Revert "[LLDB] Add/Remove xfail for some API tests on Windows"
authortcwg <tcwg@linaro.org>
Mon, 29 May 2023 12:57:26 +0000 (13:57 +0100)
committerMuhammad Omair Javaid <omair.javaid@linaro.org>
Mon, 29 May 2023 13:39:36 +0000 (17:39 +0400)
This reverts commit 6ea1a0d4fc3823de143a288df2059b48dc01cf72.

It again marks XFAIL LLDB tests failing after
c384fcd3ea1dad782eaaea89b32fc33c0c3528b8

13 files changed:
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

index 48377a7..438b92c 100644 (file)
@@ -22,6 +22,7 @@ class SaveJITObjectsTestCase(TestBase):
             os.remove(j)
         return
 
+    @expectedFailureAll(oslist=["windows"])
     def test_save_jit_objects(self):
         self.build()
         os.chdir(self.getBuildDir())
index 745700a..9f477f9 100644 (file)
@@ -12,17 +12,20 @@ from lldbsuite.test.lldbtest import *
 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()
index ae4847b..49a72c2 100644 (file)
@@ -25,7 +25,8 @@ class TestInlineStepping(TestBase):
         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()
index 1d4a000..6c399b8 100644 (file)
@@ -10,7 +10,9 @@ from lldbsuite.test import lldbutil
 
 
 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 @@ class StepAvoidsNoDebugTestCase(TestBase):
         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 @@ class StepAvoidsNoDebugTestCase(TestBase):
         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()
index 457dba1..2da0a78 100644 (file)
@@ -45,6 +45,7 @@ class TestStepTarget(TestBase):
         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 @@ class TestStepTarget(TestBase):
 
         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 @@ class TestStepTarget(TestBase):
         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 @@ class TestStepTarget(TestBase):
         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."""
 
index 1a81113..9d96463 100644 (file)
@@ -75,6 +75,7 @@ class GlobalVariablesCppTestCase(TestBase):
         )
         self.assertEqual(var.GetValue(), "100")
 
+    @expectedFailureAll(oslist=["windows"], bugnumber="llvm.org/pr24764")
     def test_access_by_mangled_name(self):
         self.build()
 
index 1dc9d00..960cdac 100644 (file)
@@ -37,7 +37,6 @@ class NamespaceBreakpointTestCase(TestBase):
             )
 
     @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)."""
index 6eb5d46..33685d6 100644 (file)
@@ -44,6 +44,8 @@ class TestCase(TestBase):
             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
index 75b9082..572d76e 100644 (file)
@@ -20,6 +20,7 @@ class DisasmAPITestCase(TestBase):
             "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()
index fb6073b..04c807b 100644 (file)
@@ -20,6 +20,7 @@ class SymbolAPITestCase(TestBase):
             "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()
index 7674d10..4c12577 100644 (file)
@@ -17,6 +17,7 @@ class SymbolContextAPITestCase(TestBase):
             "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()
index c1fed81..c9e7e80 100644 (file)
@@ -42,6 +42,7 @@ class TargetAPITestCase(TestBase):
         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 @@ class TargetAPITestCase(TestBase):
         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()
index 57139f7..dc68eb6 100644 (file)
@@ -17,6 +17,7 @@ class ValueAPITestCase(TestBase):
         # 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}