Skip to content

Commit f8e40b9

Browse files
author
kendal
committed
[lldb][test][win][x86_64] XFAIL already failing API tests
1 parent 70c6e79 commit f8e40b9

File tree

30 files changed

+57
-23
lines changed

30 files changed

+57
-23
lines changed

lldb/test/API/commands/apropos/with-process/TestAproposWithProcess.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
Test that apropos env doesn't crash trying to touch the process plugin command
33
"""
44

5-
65
import lldb
6+
from lldbsuite.test.decorators import *
77
from lldbsuite.test.lldbtest import *
88
import lldbsuite.test.lldbutil as lldbutil
99

@@ -17,6 +17,7 @@ def setUp(self):
1717
# Find the line number to break inside main().
1818
self.line = line_number("main.cpp", "// break here")
1919

20+
@expectedFailureAll(triple="x86_64-.*-windows.*")
2021
def test_apropos_with_process(self):
2122
"""Test that apropos env doesn't crash trying to touch the process plugin command."""
2223
self.build()

lldb/test/API/commands/command/nested_alias/TestNestedAlias.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
Test that an alias can reference other aliases without crashing.
33
"""
44

5-
65
import lldb
6+
from lldbsuite.test.decorators import *
77
from lldbsuite.test.lldbtest import *
88
import lldbsuite.test.lldbutil as lldbutil
99

@@ -17,6 +17,7 @@ def setUp(self):
1717
# Find the line number to break inside main().
1818
self.line = line_number("main.cpp", "// break here")
1919

20+
@expectedFailureAll(triple="x86_64-.*-windows.*")
2021
def test_nested_alias(self):
2122
"""Test that an alias can reference other aliases without crashing."""
2223
self.build()

lldb/test/API/commands/expression/entry-bp/TestExprEntryBP.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@
44

55
import lldb
66
import lldbsuite.test.lldbutil as lldbutil
7+
from lldbsuite.test.decorators import *
78
from lldbsuite.test.lldbtest import *
89

910

1011
class ExprEntryBPTestCase(TestBase):
1112
NO_DEBUG_INFO_TESTCASE = True
1213

14+
@expectedFailureAll(triple="x86_64-.*-windows.*")
1315
def test_expr_entry_bp(self):
1416
"""Tests expressions evaluation when the breakpoint on module's entry is set."""
1517
self.build()

lldb/test/API/commands/memory/write/TestMemoryWrite.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ def build_run_stop(self):
3939
lldbutil.check_breakpoint(self, bpno=1, expected_hit_count=1)
4040

4141
@no_debug_info_test
42+
@expectedFailureAll(triple="x86_64-.*-windows.*")
4243
def test_memory_write(self):
4344
"""Test the 'memory write' command for writing values and file contents."""
4445
self.build_run_stop()

lldb/test/API/commands/settings/use_source_cache/TestUseSourceCache.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def test_set_use_source_cache_false(self):
1818
self.set_use_source_cache_and_test(False)
1919

2020
@skipIf(hostoslist=no_match(["windows"]))
21-
@skipIf(oslist=["windows"]) # Fails on windows 11
21+
@expectedFailureAll(oslist=["windows"])
2222
def test_set_use_source_cache_true(self):
2323
"""Test that after 'set use-source-cache false', files are locked."""
2424
self.set_use_source_cache_and_test(True)

lldb/test/API/functionalities/breakpoint/address_breakpoints/TestAddressBreakpoints.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
Test address breakpoints set with shared library of SBAddress work correctly.
33
"""
44

5-
65
import lldb
76
import lldbsuite.test.lldbutil as lldbutil
7+
from lldbsuite.test.decorators import *
88
from lldbsuite.test.lldbtest import *
99

1010

@@ -16,6 +16,7 @@ def test_address_breakpoints(self):
1616
self.build()
1717
self.address_breakpoints()
1818

19+
@expectedFailureAll(triple="x86_64-.*-windows.*")
1920
def address_breakpoints(self):
2021
"""Test address breakpoints set with shared library of SBAddress work correctly."""
2122
target = self.createTestTarget()

lldb/test/API/functionalities/breakpoint/auto_continue/TestBreakpointAutoContinue.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
Test that the breakpoint auto-continue flag works correctly.
33
"""
44

5-
65
import lldb
76
import lldbsuite.test.lldbutil as lldbutil
7+
from lldbsuite.test.decorators import *
88
from lldbsuite.test.lldbtest import *
99

1010

@@ -21,6 +21,7 @@ def test_auto_continue_with_command(self):
2121
self.build()
2222
self.auto_continue_with_command()
2323

24+
@expectedFailureAll(triple="x86_64-.*-windows.*")
2425
def test_auto_continue_on_location(self):
2526
"""Set auto-continue on a location and make sure only that location continues"""
2627
self.build()

lldb/test/API/functionalities/breakpoint/breakpoint_command/TestBreakpointCommandsFromPython.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ class PythonBreakpointCommandSettingTestCase(TestBase):
1313
NO_DEBUG_INFO_TESTCASE = True
1414

1515
@add_test_categories(["pyapi"])
16+
@expectedFailureAll(triple="x86_64-.*-windows.*")
1617
def test_step_out_python(self):
1718
"""Test stepping out using a python breakpoint command."""
1819
self.build()

lldb/test/API/functionalities/breakpoint/breakpoint_options/TestBreakpointOptions.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@
22
Test breakpoint command for different options.
33
"""
44

5-
65
import lldb
6+
from lldbsuite.test.decorators import *
77
from lldbsuite.test.lldbtest import *
88
import lldbsuite.test.lldbutil as lldbutil
99

1010

1111
class BreakpointOptionsTestCase(TestBase):
12+
@expectedFailureAll(triple="x86_64-.*-windows.*")
1213
def test(self):
1314
"""Test breakpoint command for different options."""
1415
self.build()

lldb/test/API/functionalities/breakpoint/step_over_breakpoint/TestStepOverBreakpoint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
and eStopReasonPlanComplete when breakpoint's condition fails.
66
"""
77

8-
98
import lldb
109
from lldbsuite.test.decorators import *
1110
from lldbsuite.test.lldbtest import *
@@ -56,6 +55,7 @@ def setUp(self):
5655
)
5756
self.assertIsNotNone(self.thread, "Didn't stop at breakpoint 1.")
5857

58+
@expectedFailureAll(triple="x86_64-.*-windows.*")
5959
def test_step_instruction(self):
6060
# Count instructions between breakpoint_1 and breakpoint_4
6161
contextList = self.target.FindFunctions("main", lldb.eFunctionNameTypeAuto)

lldb/test/API/functionalities/conditional_break/TestConditionalBreak.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
class ConditionalBreakTestCase(TestBase):
1717
@add_test_categories(["pyapi"])
18+
@expectedFailureAll(triple="x86_64-.*-windows.*")
1819
def test_with_python(self):
1920
"""Exercise some thread and frame APIs to break if c() is called by a()."""
2021
self.build()

lldb/test/API/functionalities/memory/find/TestMemoryFind.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
Test the 'memory find' command.
33
"""
44

5-
65
import lldb
76
from lldbsuite.test.lldbtest import *
87
import lldbsuite.test.lldbutil as lldbutil
@@ -16,6 +15,7 @@ def setUp(self):
1615
# Find the line number to break inside main().
1716
self.line = line_number("main.cpp", "// break here")
1817

18+
@expectedFailureAll(triple="x86_64-.*-windows.*")
1919
def test_memory_find(self):
2020
"""Test the 'memory find' command."""
2121
self.build()

lldb/test/API/functionalities/multiple-slides/TestMultipleSlides.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
Test that a binary can be slid to different load addresses correctly
33
"""
44

5-
65
import lldb
76
from lldbsuite.test.decorators import *
87
from lldbsuite.test.lldbtest import *
@@ -12,6 +11,7 @@
1211
class MultipleSlidesTestCase(TestBase):
1312
NO_DEBUG_INFO_TESTCASE = True
1413

14+
@expectedFailureAll(triple="x86_64-.*-windows.*")
1515
def test_mulitple_slides(self):
1616
"""Test that a binary can be slid multiple times correctly."""
1717
self.build()

lldb/test/API/functionalities/var_path/TestVarPath.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@
22
Make sure the getting a variable path works and doesn't crash.
33
"""
44

5-
65
import lldb
76
import lldbsuite.test.lldbutil as lldbutil
8-
from lldbsuite.test.decorators import *
97
from lldbsuite.test.lldbtest import *
108

119

lldb/test/API/lang/c/anonymous/TestAnonymous.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""Test that anonymous structs/unions are transparent to member access"""
22

3-
43
import lldb
54
from lldbsuite.test.decorators import *
65
from lldbsuite.test.lldbtest import *
@@ -12,6 +11,7 @@ class AnonymousTestCase(TestBase):
1211
compiler="icc",
1312
bugnumber="llvm.org/pr15036: LLDB generates an incorrect AST layout for an anonymous struct when DWARF is generated by ICC",
1413
)
14+
@expectedFailureAll(triple="x86_64-.*-windows.*")
1515
def test_expr_nest(self):
1616
self.build()
1717
self.common_setup(self.line0)
@@ -23,6 +23,7 @@ def test_expr_nest(self):
2323

2424
self.expect("expression n->b", VARIABLES_DISPLAYED_CORRECTLY, substrs=["= 2"])
2525

26+
@expectedFailureAll(triple="x86_64-.*-windows.*")
2627
def test_expr_child(self):
2728
self.build()
2829
self.common_setup(self.line1)
@@ -40,6 +41,7 @@ def test_expr_child(self):
4041
compiler="icc",
4142
bugnumber="llvm.org/pr15036: This particular regression was introduced by r181498",
4243
)
44+
@expectedFailureAll(triple="x86_64-.*-windows.*")
4345
def test_expr_grandchild(self):
4446
self.build()
4547
self.common_setup(self.line2)
@@ -53,6 +55,7 @@ def test_expr_grandchild(self):
5355
"expression g.child.b", VARIABLES_DISPLAYED_CORRECTLY, substrs=["= 2"]
5456
)
5557

58+
@expectedFailureAll(triple="x86_64-.*-windows.*")
5659
def test_expr_parent(self):
5760
self.build()
5861
if "clang" in self.getCompiler() and "3.4" in self.getCompilerVersion():
@@ -74,6 +77,7 @@ def test_expr_parent(self):
7477
substrs=["(type_y) $", "dummy = 2"],
7578
)
7679

80+
@expectedFailureAll(triple="x86_64-.*-windows.*")
7781
def test_expr_null(self):
7882
self.build()
7983
self.common_setup(self.line2)
@@ -126,6 +130,7 @@ def test_child_by_name(self):
126130
if not error.Success() or value != 0:
127131
self.fail("failed to get the correct value for element a in n")
128132

133+
@expectedFailureAll(triple="x86_64-.*-windows.*")
129134
def test_nest_flat(self):
130135
self.build()
131136
self.common_setup(self.line2)

lldb/test/API/lang/c/array_types/TestArrayTypes.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""Test breakpoint by file/line number; and list variables with array types."""
22

3-
43
import lldb
54
from lldbsuite.test.decorators import *
65
from lldbsuite.test.lldbtest import *
@@ -14,6 +13,7 @@ def setUp(self):
1413
# Find the line number to break inside main().
1514
self.line = line_number("main.c", "// Set break point at this line.")
1615

16+
@expectedFailureAll(triple="x86_64-.*-windows.*")
1717
def test_and_run_command(self):
1818
"""Test 'frame variable var_name' on some variables with array types."""
1919
self.build()
@@ -80,6 +80,7 @@ def test_and_run_command(self):
8080
)
8181

8282
@expectedFailureNetBSD
83+
@expectedFailureAll(triple="x86_64-.*-windows.*")
8384
@add_test_categories(["pyapi"])
8485
def test_and_python_api(self):
8586
"""Use Python APIs to inspect variables with array types."""

lldb/test/API/lang/c/enum_types/TestEnumTypes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""Look up enum type information and check for correct display."""
22

3-
43
import lldb
54
from lldbsuite.test.lldbtest import *
65
import lldbsuite.test.lldbutil as lldbutil
@@ -14,6 +13,7 @@ def setUp(self):
1413
# Find the line number to break inside main().
1514
self.line = line_number("main.c", "// Set break point at this line.")
1615

16+
@expectedFailureAll(triple="x86_64-.*-windows.*")
1717
def test_command_line(self):
1818
"""Test 'image lookup -t enum_test_days' and check for correct display and enum value printing."""
1919
self.build()

lldb/test/API/lang/c/forward/TestForwardDeclaration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""Test that forward declaration of a data structure gets resolved correctly."""
22

3-
43
import lldb
54
from lldbsuite.test.lldbtest import *
65
from lldbsuite.test.decorators import *
@@ -46,6 +45,7 @@ def do_test(self, dictionary=None):
4645
substrs=["(bar)", "(int) a = 1", "(int) b = 2"],
4746
)
4847

48+
@expectedFailureAll(triple="x86_64-.*-windows.*")
4949
def test(self):
5050
self.do_test()
5151

lldb/test/API/lang/c/function_types/TestFunctionTypes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""Test variable with function ptr type and that break on the function works."""
22

3-
43
import lldb
54
from lldbsuite.test.decorators import *
65
from lldbsuite.test.lldbtest import *
@@ -14,6 +13,7 @@ def setUp(self):
1413
# Find the line number to break inside main().
1514
self.line = line_number("main.c", "// Set break point at this line.")
1615

16+
@expectedFailureAll(triple="x86_64-.*-windows.*")
1717
def test(self):
1818
"""Test 'callback' has function ptr type, then break on the function."""
1919
self.build()

lldb/test/API/lang/c/non-mangled/TestCNonMangled.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
import lldbsuite.test.lldbutil as lldbutil
2+
from lldbsuite.test.decorators import *
23
from lldbsuite.test.lldbtest import *
34

45

56
class TestCase(TestBase):
7+
@expectedFailureAll(triple="x86_64-.*-windows.*")
68
def test_functions_having_dlang_mangling_prefix(self):
79
"""
810
Ensure C functions with a '_D' prefix alone are not mistakenly treated

lldb/test/API/lang/c/register_variables/TestRegisterVariables.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ class RegisterVariableTestCase(TestBase):
1818
compiler="gcc", compiler_version=[">=", "4.8.2"], archs=["i386"]
1919
)
2020
@expectedFailureAll(compiler="gcc", compiler_version=["<", "4.9"], archs=["x86_64"])
21+
@expectedFailureAll(triple="x86_64-.*-windows.*")
2122
def test_and_run_command(self):
2223
"""Test expressions on register values."""
2324

lldb/test/API/lang/c/set_values/TestSetValues.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""Test settings and readings of program variables."""
22

3-
43
import lldb
54
from lldbsuite.test.decorators import *
65
from lldbsuite.test.lldbtest import *
@@ -18,6 +17,7 @@ def setUp(self):
1817
self.line4 = line_number("main.c", "// Set break point #4.")
1918
self.line5 = line_number("main.c", "// Set break point #5.")
2019

20+
@expectedFailureAll(triple="x86_64-.*-windows.*")
2121
def test(self):
2222
"""Test settings and readings of program variables."""
2323
self.build()

lldb/test/API/lang/c/shared_lib/TestSharedLib.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
"""Test that types defined in shared libraries work correctly."""
22

3-
4-
import unittest
53
import lldb
4+
import unittest
65
from lldbsuite.test.decorators import *
76
from lldbsuite.test.lldbtest import *
87
import lldbsuite.test.lldbutil as lldbutil
@@ -27,10 +26,12 @@ def common_test_expr(self, preload_symbols):
2726

2827
self.expect("expression GetMeASubFoo(my_foo_ptr)", startstr="(sub_foo *) $")
2928

29+
@expectedFailureAll(triple="x86_64-.*-windows.*")
3030
def test_expr(self):
3131
"""Test that types work when defined in a shared library and forward-declared in the main executable"""
3232
self.common_test_expr(True)
3333

34+
@expectedFailureAll(triple="x86_64-.*-windows.*")
3435
def test_expr_no_preload(self):
3536
"""Test that types work when defined in a shared library and forward-declared in the main executable, but with preloading disabled"""
3637
self.common_test_expr(False)

lldb/test/API/lang/cpp/bitfields/TestCppBitfields.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
class CppBitfieldsTestCase(TestBase):
1010
@no_debug_info_test
11+
@expectedFailureAll(triple="x86_64-.*-windows.*")
1112
def test_bitfields(self):
1213
self.build()
1314
lldbutil.run_to_source_breakpoint(

0 commit comments

Comments
 (0)