https://github.com/kendalharland created https://github.com/llvm/llvm-project/pull/100477
I'm currently working on getting the LLDB test suites to pass on Windows x86_64 which is not currently included in LLVM CI. These tests are currently failing in this configuration. See https://github.com/llvm/llvm-project/issues/100474 See also https://github.com/llvm/llvm-project/issues/75936 >From f8e40b90d65434838d2baa79795a1b160ab4614c Mon Sep 17 00:00:00 2001 From: kendal <kendal@thebrowser.company> Date: Tue, 23 Jul 2024 16:50:34 -0700 Subject: [PATCH] [lldb][test][win][x86_64] XFAIL already failing API tests --- .../apropos/with-process/TestAproposWithProcess.py | 3 ++- .../command/nested_alias/TestNestedAlias.py | 3 ++- .../expression/entry-bp/TestExprEntryBP.py | 2 ++ .../API/commands/memory/write/TestMemoryWrite.py | 1 + .../use_source_cache/TestUseSourceCache.py | 2 +- .../address_breakpoints/TestAddressBreakpoints.py | 3 ++- .../auto_continue/TestBreakpointAutoContinue.py | 3 ++- .../TestBreakpointCommandsFromPython.py | 1 + .../breakpoint_options/TestBreakpointOptions.py | 3 ++- .../step_over_breakpoint/TestStepOverBreakpoint.py | 2 +- .../conditional_break/TestConditionalBreak.py | 1 + .../functionalities/memory/find/TestMemoryFind.py | 2 +- .../multiple-slides/TestMultipleSlides.py | 2 +- .../API/functionalities/var_path/TestVarPath.py | 2 -- lldb/test/API/lang/c/anonymous/TestAnonymous.py | 7 ++++++- lldb/test/API/lang/c/array_types/TestArrayTypes.py | 3 ++- lldb/test/API/lang/c/enum_types/TestEnumTypes.py | 2 +- .../API/lang/c/forward/TestForwardDeclaration.py | 2 +- .../API/lang/c/function_types/TestFunctionTypes.py | 2 +- .../test/API/lang/c/non-mangled/TestCNonMangled.py | 2 ++ .../c/register_variables/TestRegisterVariables.py | 1 + lldb/test/API/lang/c/set_values/TestSetValues.py | 2 +- lldb/test/API/lang/c/shared_lib/TestSharedLib.py | 5 +++-- .../API/lang/cpp/bitfields/TestCppBitfields.py | 1 + .../API/lang/cpp/class_types/TestClassTypes.py | 3 ++- lldb/test/API/lang/cpp/inlines/TestInlines.py | 2 +- .../API/lang/cpp/unique-types4/TestUniqueTypes4.py | 14 ++++++++++++-- .../python_api/compile_unit/TestCompileUnitAPI.py | 1 + lldb/test/API/python_api/thread/TestThreadAPI.py | 1 + lldb/test/API/source-manager/TestSourceManager.py | 2 ++ 30 files changed, 57 insertions(+), 23 deletions(-) diff --git a/lldb/test/API/commands/apropos/with-process/TestAproposWithProcess.py b/lldb/test/API/commands/apropos/with-process/TestAproposWithProcess.py index 268317a4bf212..adeb7b4f906c5 100644 --- a/lldb/test/API/commands/apropos/with-process/TestAproposWithProcess.py +++ b/lldb/test/API/commands/apropos/with-process/TestAproposWithProcess.py @@ -2,8 +2,8 @@ Test that apropos env doesn't crash trying to touch the process plugin command """ - import lldb +from lldbsuite.test.decorators import * from lldbsuite.test.lldbtest import * import lldbsuite.test.lldbutil as lldbutil @@ -17,6 +17,7 @@ def setUp(self): # Find the line number to break inside main(). self.line = line_number("main.cpp", "// break here") + @expectedFailureAll(triple="x86_64-.*-windows.*") def test_apropos_with_process(self): """Test that apropos env doesn't crash trying to touch the process plugin command.""" self.build() diff --git a/lldb/test/API/commands/command/nested_alias/TestNestedAlias.py b/lldb/test/API/commands/command/nested_alias/TestNestedAlias.py index 0919caa7d0056..315576afde703 100644 --- a/lldb/test/API/commands/command/nested_alias/TestNestedAlias.py +++ b/lldb/test/API/commands/command/nested_alias/TestNestedAlias.py @@ -2,8 +2,8 @@ Test that an alias can reference other aliases without crashing. """ - import lldb +from lldbsuite.test.decorators import * from lldbsuite.test.lldbtest import * import lldbsuite.test.lldbutil as lldbutil @@ -17,6 +17,7 @@ def setUp(self): # Find the line number to break inside main(). self.line = line_number("main.cpp", "// break here") + @expectedFailureAll(triple="x86_64-.*-windows.*") def test_nested_alias(self): """Test that an alias can reference other aliases without crashing.""" self.build() diff --git a/lldb/test/API/commands/expression/entry-bp/TestExprEntryBP.py b/lldb/test/API/commands/expression/entry-bp/TestExprEntryBP.py index 1e7882b4d0236..0ee7e46d73cd1 100644 --- a/lldb/test/API/commands/expression/entry-bp/TestExprEntryBP.py +++ b/lldb/test/API/commands/expression/entry-bp/TestExprEntryBP.py @@ -4,12 +4,14 @@ import lldb import lldbsuite.test.lldbutil as lldbutil +from lldbsuite.test.decorators import * from lldbsuite.test.lldbtest import * class ExprEntryBPTestCase(TestBase): NO_DEBUG_INFO_TESTCASE = True + @expectedFailureAll(triple="x86_64-.*-windows.*") def test_expr_entry_bp(self): """Tests expressions evaluation when the breakpoint on module's entry is set.""" self.build() diff --git a/lldb/test/API/commands/memory/write/TestMemoryWrite.py b/lldb/test/API/commands/memory/write/TestMemoryWrite.py index 45787243a614d..2924f1b97fa1a 100644 --- a/lldb/test/API/commands/memory/write/TestMemoryWrite.py +++ b/lldb/test/API/commands/memory/write/TestMemoryWrite.py @@ -39,6 +39,7 @@ def build_run_stop(self): lldbutil.check_breakpoint(self, bpno=1, expected_hit_count=1) @no_debug_info_test + @expectedFailureAll(triple="x86_64-.*-windows.*") def test_memory_write(self): """Test the 'memory write' command for writing values and file contents.""" self.build_run_stop() diff --git a/lldb/test/API/commands/settings/use_source_cache/TestUseSourceCache.py b/lldb/test/API/commands/settings/use_source_cache/TestUseSourceCache.py index 421599080a9e5..cb58fab3304b6 100644 --- a/lldb/test/API/commands/settings/use_source_cache/TestUseSourceCache.py +++ b/lldb/test/API/commands/settings/use_source_cache/TestUseSourceCache.py @@ -18,7 +18,7 @@ def test_set_use_source_cache_false(self): self.set_use_source_cache_and_test(False) @skipIf(hostoslist=no_match(["windows"])) - @skipIf(oslist=["windows"]) # Fails on windows 11 + @expectedFailureAll(oslist=["windows"]) def test_set_use_source_cache_true(self): """Test that after 'set use-source-cache false', files are locked.""" self.set_use_source_cache_and_test(True) diff --git a/lldb/test/API/functionalities/breakpoint/address_breakpoints/TestAddressBreakpoints.py b/lldb/test/API/functionalities/breakpoint/address_breakpoints/TestAddressBreakpoints.py index 3ceccc6e6d641..6696880f8aa4a 100644 --- a/lldb/test/API/functionalities/breakpoint/address_breakpoints/TestAddressBreakpoints.py +++ b/lldb/test/API/functionalities/breakpoint/address_breakpoints/TestAddressBreakpoints.py @@ -2,9 +2,9 @@ Test address breakpoints set with shared library of SBAddress work correctly. """ - import lldb import lldbsuite.test.lldbutil as lldbutil +from lldbsuite.test.decorators import * from lldbsuite.test.lldbtest import * @@ -16,6 +16,7 @@ def test_address_breakpoints(self): self.build() self.address_breakpoints() + @expectedFailureAll(triple="x86_64-.*-windows.*") def address_breakpoints(self): """Test address breakpoints set with shared library of SBAddress work correctly.""" target = self.createTestTarget() diff --git a/lldb/test/API/functionalities/breakpoint/auto_continue/TestBreakpointAutoContinue.py b/lldb/test/API/functionalities/breakpoint/auto_continue/TestBreakpointAutoContinue.py index 47cbc4139dc02..5cc30e7e7f103 100644 --- a/lldb/test/API/functionalities/breakpoint/auto_continue/TestBreakpointAutoContinue.py +++ b/lldb/test/API/functionalities/breakpoint/auto_continue/TestBreakpointAutoContinue.py @@ -2,9 +2,9 @@ Test that the breakpoint auto-continue flag works correctly. """ - import lldb import lldbsuite.test.lldbutil as lldbutil +from lldbsuite.test.decorators import * from lldbsuite.test.lldbtest import * @@ -21,6 +21,7 @@ def test_auto_continue_with_command(self): self.build() self.auto_continue_with_command() + @expectedFailureAll(triple="x86_64-.*-windows.*") def test_auto_continue_on_location(self): """Set auto-continue on a location and make sure only that location continues""" self.build() diff --git a/lldb/test/API/functionalities/breakpoint/breakpoint_command/TestBreakpointCommandsFromPython.py b/lldb/test/API/functionalities/breakpoint/breakpoint_command/TestBreakpointCommandsFromPython.py index 7889f08ba8dbb..bf245da05152c 100644 --- a/lldb/test/API/functionalities/breakpoint/breakpoint_command/TestBreakpointCommandsFromPython.py +++ b/lldb/test/API/functionalities/breakpoint/breakpoint_command/TestBreakpointCommandsFromPython.py @@ -13,6 +13,7 @@ class PythonBreakpointCommandSettingTestCase(TestBase): NO_DEBUG_INFO_TESTCASE = True @add_test_categories(["pyapi"]) + @expectedFailureAll(triple="x86_64-.*-windows.*") def test_step_out_python(self): """Test stepping out using a python breakpoint command.""" self.build() diff --git a/lldb/test/API/functionalities/breakpoint/breakpoint_options/TestBreakpointOptions.py b/lldb/test/API/functionalities/breakpoint/breakpoint_options/TestBreakpointOptions.py index d262b627195bc..28e18795e8291 100644 --- a/lldb/test/API/functionalities/breakpoint/breakpoint_options/TestBreakpointOptions.py +++ b/lldb/test/API/functionalities/breakpoint/breakpoint_options/TestBreakpointOptions.py @@ -2,13 +2,14 @@ Test breakpoint command for different options. """ - import lldb +from lldbsuite.test.decorators import * from lldbsuite.test.lldbtest import * import lldbsuite.test.lldbutil as lldbutil class BreakpointOptionsTestCase(TestBase): + @expectedFailureAll(triple="x86_64-.*-windows.*") def test(self): """Test breakpoint command for different options.""" self.build() diff --git a/lldb/test/API/functionalities/breakpoint/step_over_breakpoint/TestStepOverBreakpoint.py b/lldb/test/API/functionalities/breakpoint/step_over_breakpoint/TestStepOverBreakpoint.py index 3a7440a31677a..26406abb6d302 100644 --- a/lldb/test/API/functionalities/breakpoint/step_over_breakpoint/TestStepOverBreakpoint.py +++ b/lldb/test/API/functionalities/breakpoint/step_over_breakpoint/TestStepOverBreakpoint.py @@ -5,7 +5,6 @@ and eStopReasonPlanComplete when breakpoint's condition fails. """ - import lldb from lldbsuite.test.decorators import * from lldbsuite.test.lldbtest import * @@ -56,6 +55,7 @@ def setUp(self): ) self.assertIsNotNone(self.thread, "Didn't stop at breakpoint 1.") + @expectedFailureAll(triple="x86_64-.*-windows.*") def test_step_instruction(self): # Count instructions between breakpoint_1 and breakpoint_4 contextList = self.target.FindFunctions("main", lldb.eFunctionNameTypeAuto) diff --git a/lldb/test/API/functionalities/conditional_break/TestConditionalBreak.py b/lldb/test/API/functionalities/conditional_break/TestConditionalBreak.py index 725e5d4722dd1..63e3d766ded1d 100644 --- a/lldb/test/API/functionalities/conditional_break/TestConditionalBreak.py +++ b/lldb/test/API/functionalities/conditional_break/TestConditionalBreak.py @@ -15,6 +15,7 @@ class ConditionalBreakTestCase(TestBase): @add_test_categories(["pyapi"]) + @expectedFailureAll(triple="x86_64-.*-windows.*") def test_with_python(self): """Exercise some thread and frame APIs to break if c() is called by a().""" self.build() diff --git a/lldb/test/API/functionalities/memory/find/TestMemoryFind.py b/lldb/test/API/functionalities/memory/find/TestMemoryFind.py index 09611cc808777..4f1cfe75a2066 100644 --- a/lldb/test/API/functionalities/memory/find/TestMemoryFind.py +++ b/lldb/test/API/functionalities/memory/find/TestMemoryFind.py @@ -2,7 +2,6 @@ Test the 'memory find' command. """ - import lldb from lldbsuite.test.lldbtest import * import lldbsuite.test.lldbutil as lldbutil @@ -16,6 +15,7 @@ def setUp(self): # Find the line number to break inside main(). self.line = line_number("main.cpp", "// break here") + @expectedFailureAll(triple="x86_64-.*-windows.*") def test_memory_find(self): """Test the 'memory find' command.""" self.build() diff --git a/lldb/test/API/functionalities/multiple-slides/TestMultipleSlides.py b/lldb/test/API/functionalities/multiple-slides/TestMultipleSlides.py index 3d6b27fe68a1b..d27eed9c1b9bd 100644 --- a/lldb/test/API/functionalities/multiple-slides/TestMultipleSlides.py +++ b/lldb/test/API/functionalities/multiple-slides/TestMultipleSlides.py @@ -2,7 +2,6 @@ Test that a binary can be slid to different load addresses correctly """ - import lldb from lldbsuite.test.decorators import * from lldbsuite.test.lldbtest import * @@ -12,6 +11,7 @@ class MultipleSlidesTestCase(TestBase): NO_DEBUG_INFO_TESTCASE = True + @expectedFailureAll(triple="x86_64-.*-windows.*") def test_mulitple_slides(self): """Test that a binary can be slid multiple times correctly.""" self.build() diff --git a/lldb/test/API/functionalities/var_path/TestVarPath.py b/lldb/test/API/functionalities/var_path/TestVarPath.py index 53c45f57f517d..40daf6174d2a6 100644 --- a/lldb/test/API/functionalities/var_path/TestVarPath.py +++ b/lldb/test/API/functionalities/var_path/TestVarPath.py @@ -2,10 +2,8 @@ Make sure the getting a variable path works and doesn't crash. """ - import lldb import lldbsuite.test.lldbutil as lldbutil -from lldbsuite.test.decorators import * from lldbsuite.test.lldbtest import * diff --git a/lldb/test/API/lang/c/anonymous/TestAnonymous.py b/lldb/test/API/lang/c/anonymous/TestAnonymous.py index da342aaa8d8c4..a15476f47ba6f 100644 --- a/lldb/test/API/lang/c/anonymous/TestAnonymous.py +++ b/lldb/test/API/lang/c/anonymous/TestAnonymous.py @@ -1,6 +1,5 @@ """Test that anonymous structs/unions are transparent to member access""" - import lldb from lldbsuite.test.decorators import * from lldbsuite.test.lldbtest import * @@ -12,6 +11,7 @@ class AnonymousTestCase(TestBase): compiler="icc", bugnumber="llvm.org/pr15036: LLDB generates an incorrect AST layout for an anonymous struct when DWARF is generated by ICC", ) + @expectedFailureAll(triple="x86_64-.*-windows.*") def test_expr_nest(self): self.build() self.common_setup(self.line0) @@ -23,6 +23,7 @@ def test_expr_nest(self): self.expect("expression n->b", VARIABLES_DISPLAYED_CORRECTLY, substrs=["= 2"]) + @expectedFailureAll(triple="x86_64-.*-windows.*") def test_expr_child(self): self.build() self.common_setup(self.line1) @@ -40,6 +41,7 @@ def test_expr_child(self): compiler="icc", bugnumber="llvm.org/pr15036: This particular regression was introduced by r181498", ) + @expectedFailureAll(triple="x86_64-.*-windows.*") def test_expr_grandchild(self): self.build() self.common_setup(self.line2) @@ -53,6 +55,7 @@ def test_expr_grandchild(self): "expression g.child.b", VARIABLES_DISPLAYED_CORRECTLY, substrs=["= 2"] ) + @expectedFailureAll(triple="x86_64-.*-windows.*") def test_expr_parent(self): self.build() if "clang" in self.getCompiler() and "3.4" in self.getCompilerVersion(): @@ -74,6 +77,7 @@ def test_expr_parent(self): substrs=["(type_y) $", "dummy = 2"], ) + @expectedFailureAll(triple="x86_64-.*-windows.*") def test_expr_null(self): self.build() self.common_setup(self.line2) @@ -126,6 +130,7 @@ def test_child_by_name(self): if not error.Success() or value != 0: self.fail("failed to get the correct value for element a in n") + @expectedFailureAll(triple="x86_64-.*-windows.*") def test_nest_flat(self): self.build() self.common_setup(self.line2) diff --git a/lldb/test/API/lang/c/array_types/TestArrayTypes.py b/lldb/test/API/lang/c/array_types/TestArrayTypes.py index fc234f5842508..a1bad791f0dda 100644 --- a/lldb/test/API/lang/c/array_types/TestArrayTypes.py +++ b/lldb/test/API/lang/c/array_types/TestArrayTypes.py @@ -1,6 +1,5 @@ """Test breakpoint by file/line number; and list variables with array types.""" - import lldb from lldbsuite.test.decorators import * from lldbsuite.test.lldbtest import * @@ -14,6 +13,7 @@ def setUp(self): # Find the line number to break inside main(). self.line = line_number("main.c", "// Set break point at this line.") + @expectedFailureAll(triple="x86_64-.*-windows.*") def test_and_run_command(self): """Test 'frame variable var_name' on some variables with array types.""" self.build() @@ -80,6 +80,7 @@ def test_and_run_command(self): ) @expectedFailureNetBSD + @expectedFailureAll(triple="x86_64-.*-windows.*") @add_test_categories(["pyapi"]) def test_and_python_api(self): """Use Python APIs to inspect variables with array types.""" diff --git a/lldb/test/API/lang/c/enum_types/TestEnumTypes.py b/lldb/test/API/lang/c/enum_types/TestEnumTypes.py index 0015c8f478578..5093b9d69700d 100644 --- a/lldb/test/API/lang/c/enum_types/TestEnumTypes.py +++ b/lldb/test/API/lang/c/enum_types/TestEnumTypes.py @@ -1,6 +1,5 @@ """Look up enum type information and check for correct display.""" - import lldb from lldbsuite.test.lldbtest import * import lldbsuite.test.lldbutil as lldbutil @@ -14,6 +13,7 @@ def setUp(self): # Find the line number to break inside main(). self.line = line_number("main.c", "// Set break point at this line.") + @expectedFailureAll(triple="x86_64-.*-windows.*") def test_command_line(self): """Test 'image lookup -t enum_test_days' and check for correct display and enum value printing.""" self.build() diff --git a/lldb/test/API/lang/c/forward/TestForwardDeclaration.py b/lldb/test/API/lang/c/forward/TestForwardDeclaration.py index 5d05f255623f4..fb17928e5d57f 100644 --- a/lldb/test/API/lang/c/forward/TestForwardDeclaration.py +++ b/lldb/test/API/lang/c/forward/TestForwardDeclaration.py @@ -1,6 +1,5 @@ """Test that forward declaration of a data structure gets resolved correctly.""" - import lldb from lldbsuite.test.lldbtest import * from lldbsuite.test.decorators import * @@ -46,6 +45,7 @@ def do_test(self, dictionary=None): substrs=["(bar)", "(int) a = 1", "(int) b = 2"], ) + @expectedFailureAll(triple="x86_64-.*-windows.*") def test(self): self.do_test() diff --git a/lldb/test/API/lang/c/function_types/TestFunctionTypes.py b/lldb/test/API/lang/c/function_types/TestFunctionTypes.py index 2f6bb7fc0bb16..84691b2a383fd 100644 --- a/lldb/test/API/lang/c/function_types/TestFunctionTypes.py +++ b/lldb/test/API/lang/c/function_types/TestFunctionTypes.py @@ -1,6 +1,5 @@ """Test variable with function ptr type and that break on the function works.""" - import lldb from lldbsuite.test.decorators import * from lldbsuite.test.lldbtest import * @@ -14,6 +13,7 @@ def setUp(self): # Find the line number to break inside main(). self.line = line_number("main.c", "// Set break point at this line.") + @expectedFailureAll(triple="x86_64-.*-windows.*") def test(self): """Test 'callback' has function ptr type, then break on the function.""" self.build() diff --git a/lldb/test/API/lang/c/non-mangled/TestCNonMangled.py b/lldb/test/API/lang/c/non-mangled/TestCNonMangled.py index 6f7ef247b063a..f7aa1f01ccf82 100644 --- a/lldb/test/API/lang/c/non-mangled/TestCNonMangled.py +++ b/lldb/test/API/lang/c/non-mangled/TestCNonMangled.py @@ -1,8 +1,10 @@ import lldbsuite.test.lldbutil as lldbutil +from lldbsuite.test.decorators import * from lldbsuite.test.lldbtest import * class TestCase(TestBase): + @expectedFailureAll(triple="x86_64-.*-windows.*") def test_functions_having_dlang_mangling_prefix(self): """ Ensure C functions with a '_D' prefix alone are not mistakenly treated diff --git a/lldb/test/API/lang/c/register_variables/TestRegisterVariables.py b/lldb/test/API/lang/c/register_variables/TestRegisterVariables.py index 0e51d4f7ff468..cfe2d994de59c 100644 --- a/lldb/test/API/lang/c/register_variables/TestRegisterVariables.py +++ b/lldb/test/API/lang/c/register_variables/TestRegisterVariables.py @@ -18,6 +18,7 @@ class RegisterVariableTestCase(TestBase): compiler="gcc", compiler_version=[">=", "4.8.2"], archs=["i386"] ) @expectedFailureAll(compiler="gcc", compiler_version=["<", "4.9"], archs=["x86_64"]) + @expectedFailureAll(triple="x86_64-.*-windows.*") def test_and_run_command(self): """Test expressions on register values.""" diff --git a/lldb/test/API/lang/c/set_values/TestSetValues.py b/lldb/test/API/lang/c/set_values/TestSetValues.py index 0d697d6719d5f..251c7abc54780 100644 --- a/lldb/test/API/lang/c/set_values/TestSetValues.py +++ b/lldb/test/API/lang/c/set_values/TestSetValues.py @@ -1,6 +1,5 @@ """Test settings and readings of program variables.""" - import lldb from lldbsuite.test.decorators import * from lldbsuite.test.lldbtest import * @@ -18,6 +17,7 @@ def setUp(self): self.line4 = line_number("main.c", "// Set break point #4.") self.line5 = line_number("main.c", "// Set break point #5.") + @expectedFailureAll(triple="x86_64-.*-windows.*") def test(self): """Test settings and readings of program variables.""" self.build() diff --git a/lldb/test/API/lang/c/shared_lib/TestSharedLib.py b/lldb/test/API/lang/c/shared_lib/TestSharedLib.py index e0994aae76169..9da93730f1d24 100644 --- a/lldb/test/API/lang/c/shared_lib/TestSharedLib.py +++ b/lldb/test/API/lang/c/shared_lib/TestSharedLib.py @@ -1,8 +1,7 @@ """Test that types defined in shared libraries work correctly.""" - -import unittest import lldb +import unittest from lldbsuite.test.decorators import * from lldbsuite.test.lldbtest import * import lldbsuite.test.lldbutil as lldbutil @@ -27,10 +26,12 @@ def common_test_expr(self, preload_symbols): self.expect("expression GetMeASubFoo(my_foo_ptr)", startstr="(sub_foo *) $") + @expectedFailureAll(triple="x86_64-.*-windows.*") 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) + @expectedFailureAll(triple="x86_64-.*-windows.*") 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) diff --git a/lldb/test/API/lang/cpp/bitfields/TestCppBitfields.py b/lldb/test/API/lang/cpp/bitfields/TestCppBitfields.py index f796c635895ac..460946ab138d9 100644 --- a/lldb/test/API/lang/cpp/bitfields/TestCppBitfields.py +++ b/lldb/test/API/lang/cpp/bitfields/TestCppBitfields.py @@ -8,6 +8,7 @@ class CppBitfieldsTestCase(TestBase): @no_debug_info_test + @expectedFailureAll(triple="x86_64-.*-windows.*") def test_bitfields(self): self.build() lldbutil.run_to_source_breakpoint( diff --git a/lldb/test/API/lang/cpp/class_types/TestClassTypes.py b/lldb/test/API/lang/cpp/class_types/TestClassTypes.py index 80781f5d90912..8b6378d4c1c47 100644 --- a/lldb/test/API/lang/cpp/class_types/TestClassTypes.py +++ b/lldb/test/API/lang/cpp/class_types/TestClassTypes.py @@ -1,6 +1,5 @@ """Test breakpoint on a class constructor; and variable list the this object.""" - import os import lldb from lldbsuite.test.decorators import * @@ -15,6 +14,7 @@ def setUp(self): # Find the line number to break for main.cpp. self.line = line_number("main.cpp", "// Set break point at this line.") + @expectedFailureAll(triple="x86_64-.*-windows.*") def test_with_run_command(self): """Test 'frame variable this' when stopped on a class constructor.""" self.build() @@ -119,6 +119,7 @@ def test_with_python_api(self): process.Continue() + @expectedFailureAll(triple="x86_64-.*-windows.*") def test_with_expr_parser(self): """Test 'frame variable this' and 'expr this' when stopped inside a constructor.""" self.build() diff --git a/lldb/test/API/lang/cpp/inlines/TestInlines.py b/lldb/test/API/lang/cpp/inlines/TestInlines.py index 06b4dee67928c..cb43141b8f5ac 100644 --- a/lldb/test/API/lang/cpp/inlines/TestInlines.py +++ b/lldb/test/API/lang/cpp/inlines/TestInlines.py @@ -1,6 +1,5 @@ """Test variable lookup when stopped in inline functions.""" - import lldb from lldbsuite.test.decorators import * from lldbsuite.test.lldbtest import * @@ -14,6 +13,7 @@ def setUp(self): # Find the line number to break inside main(). self.line = line_number("inlines.cpp", "// Set break point at this line.") + @expectedFailureAll(triple="x86_64-.*-windows.*") def test(self): """Test that local variables are visible in expressions.""" self.build() diff --git a/lldb/test/API/lang/cpp/unique-types4/TestUniqueTypes4.py b/lldb/test/API/lang/cpp/unique-types4/TestUniqueTypes4.py index 259899ea87f89..657995e0e946f 100644 --- a/lldb/test/API/lang/cpp/unique-types4/TestUniqueTypes4.py +++ b/lldb/test/API/lang/cpp/unique-types4/TestUniqueTypes4.py @@ -39,13 +39,23 @@ def do_test(self, debug_flags): self.expect_expr("ns::FooDouble::value", result_type="double", result_value="0") self.expect_expr("ns::FooInt::value", result_type="int", result_value="0") - @skipIfWindows # https://github.com/llvm/llvm-project/issues/75936 + @expectedFailureAll( + oslist=["windows"], + # When this issue is fixed, please add `archs=["x86_64"]` as we do not run + # tests on x86_64 Windows in CI and it may remain broken. + bugnumber="https://github.com/llvm/llvm-project/issues/75936", + ) @skipIf(compiler=no_match("clang")) @skipIf(compiler_version=["<", "15.0"]) def test_simple_template_names(self): self.do_test(dict(CFLAGS_EXTRAS="-gsimple-template-names")) - @skipIfWindows # https://github.com/llvm/llvm-project/issues/75936 + @expectedFailureAll( + oslist=["windows"], + # When this issue is fixed, please add `archs=["x86_64"]` as we do not run + # tests on x86_64 Windows in CI and it may remain broken. + bugnumber="https://github.com/llvm/llvm-project/issues/75936", + ) @skipIf(compiler=no_match("clang")) @skipIf(compiler_version=["<", "15.0"]) def test_no_simple_template_names(self): diff --git a/lldb/test/API/python_api/compile_unit/TestCompileUnitAPI.py b/lldb/test/API/python_api/compile_unit/TestCompileUnitAPI.py index a12955adb7ce3..1d57020fd942e 100644 --- a/lldb/test/API/python_api/compile_unit/TestCompileUnitAPI.py +++ b/lldb/test/API/python_api/compile_unit/TestCompileUnitAPI.py @@ -9,6 +9,7 @@ class CompileUnitAPITestCase(TestBase): + @expectedFailureAll(triple="x86_64-.*-windows.*") def test(self): """Exercise some SBCompileUnit APIs.""" self.build() diff --git a/lldb/test/API/python_api/thread/TestThreadAPI.py b/lldb/test/API/python_api/thread/TestThreadAPI.py index 1898c6a2a9792..f57a3372d1481 100644 --- a/lldb/test/API/python_api/thread/TestThreadAPI.py +++ b/lldb/test/API/python_api/thread/TestThreadAPI.py @@ -15,6 +15,7 @@ def test_get_process(self): self.build() self.get_process() + @expectedFailureAll(triple="x86_64-.*-windows.*") def test_get_stop_description(self): """Test Python SBThread.GetStopDescription() API.""" self.build() diff --git a/lldb/test/API/source-manager/TestSourceManager.py b/lldb/test/API/source-manager/TestSourceManager.py index ad7c85aac70ea..733ca608489ec 100644 --- a/lldb/test/API/source-manager/TestSourceManager.py +++ b/lldb/test/API/source-manager/TestSourceManager.py @@ -170,6 +170,7 @@ def test_display_source_python_ansi_terminal_syntax_highlighting(self): self.do_display_source_python_api(use_color, r" main\(", syntax_highlighting) self.do_display_source_python_api(use_color, r"\);", syntax_highlighting) + @expectedFailureAll(triple="x86_64-.*-windows.*") def test_move_and_then_display_source(self): """Test that target.source-map settings work by moving main.c to hidden/main.c.""" self.build() @@ -281,6 +282,7 @@ def test_modify_source_file_while_debugging(self): substrs=["Hello lldb"], ) + @expectedFailureAll(triple="x86_64-.*-windows.*") def test_set_breakpoint_with_absolute_path(self): self.build() hidden = self.getBuildArtifact("hidden") _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits