Skip to content

Commit 37fbebf

Browse files
committed
Xfail tests on synthetic values on Windows
1 parent 5210b8b commit 37fbebf

File tree

1 file changed

+19
-10
lines changed

1 file changed

+19
-10
lines changed

lldb/test/API/commands/frame/var-dil/basics/ArraySubscript/TestFrameVarDILArraySubscript.py

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from lldbsuite.test import lldbutil
99

1010

11-
class TestFrameVarDILGlobalVariableLookup(TestBase):
11+
class TestFrameVarDILArraySubscript(TestBase):
1212
NO_DEBUG_INFO_TESTCASE = True
1313

1414
def expect_var_path(self, expr, compare_to_framevar=False, value=None, type=None):
@@ -19,7 +19,7 @@ def expect_var_path(self, expr, compare_to_framevar=False, value=None, type=None
1919
self.runCmd("settings set target.experimental.use-DIL true")
2020
self.assertEqual(value_dil.GetValue(), value_frv.GetValue())
2121

22-
def test_dereference(self):
22+
def test_subscript(self):
2323
self.build()
2424
lldbutil.run_to_source_breakpoint(
2525
self, "Set a breakpoint here", lldb.SBFileSpec("main.cpp")
@@ -65,14 +65,6 @@ def test_dereference(self):
6565
substrs=["unrecognized token"],
6666
)
6767

68-
# Test synthetic value subscription
69-
self.expect_var_path("vector[1]", value="2")
70-
self.expect(
71-
"frame var 'vector[100]'",
72-
error=True,
73-
substrs=["array index 100 is not valid"],
74-
)
75-
7668
# Test for floating point index
7769
self.expect(
7870
"frame var 'int_arr[1.0]'",
@@ -108,3 +100,20 @@ def test_dereference(self):
108100
error=True,
109101
substrs=["subscript of pointer to incomplete type 'void'"],
110102
)
103+
104+
@expectedFailureAll(oslist=["windows"])
105+
def test_subscript_synthetic(self):
106+
self.build()
107+
lldbutil.run_to_source_breakpoint(
108+
self, "Set a breakpoint here", lldb.SBFileSpec("main.cpp")
109+
)
110+
111+
self.runCmd("settings set target.experimental.use-DIL true")
112+
113+
# Test synthetic value subscription
114+
self.expect_var_path("vector[1]", value="2")
115+
self.expect(
116+
"frame var 'vector[100]'",
117+
error=True,
118+
substrs=["array index 100 is not valid"],
119+
)

0 commit comments

Comments
 (0)