Skip to content

Commit 9507b8b

Browse files
committed
[lldb][Type Completion] XFAIL TestExprCompletion and TestTypeLookup
Expected failures due to lazy method loading (#8579)
1 parent 41754cd commit 9507b8b

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

lldb/test/API/commands/expression/completion/TestExprCompletion.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ def test_expr_completion(self):
252252
self.complete_from_to("expr myVec.__m", "expr myVec.__mem")
253253
self.complete_from_to("expr myVec._M", "expr myVec._Mem")
254254

255+
@expectedFailureAll(setting=('plugin.typesystem.clang.experimental-redecl-completion', 'true'))
255256
def test_expr_completion_with_descriptions(self):
256257
self.build()
257258
self.main_source = "main.cpp"

lldb/test/API/functionalities/type_lookup/TestTypeLookup.py

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,24 @@ def test_type_lookup(self):
4545
"type lookup PleaseDontBeARealTypeThatExists",
4646
substrs=["no type was found matching 'PleaseDontBeARealTypeThatExists'"],
4747
)
48-
self.expect("type lookup MyCPPClass", substrs=["setF", "float getF"])
49-
self.expect("type lookup MyClass", substrs=["setF", "float getF"])
5048
self.expect(
5149
"type lookup MyObjCClass",
5250
substrs=["@interface MyObjCClass", "int x", "int y"],
5351
)
52+
53+
@expectedFailureAll(setting=('plugin.typesystem.clang.experimental-redecl-completion', 'true'))
54+
@skipUnlessDarwin
55+
@skipIf(archs=["i386"])
56+
@skipIfDarwinEmbedded # swift crash inspecting swift stdlib with little other swift loaded <rdar://problem/55079456>
57+
def test_type_lookup(self):
58+
"""Test type lookup command."""
59+
self.build()
60+
self.runCmd("file " + self.getBuildArtifact("a.out"), CURRENT_EXECUTABLE_SET)
61+
62+
lldbutil.run_break_set_by_file_and_line(
63+
self, "main.mm", self.line, num_expected_locations=1, loc_exact=True
64+
)
65+
66+
self.runCmd("run", RUN_SUCCEEDED)
67+
self.expect("type lookup MyCPPClass", substrs=["setF", "float getF"])
68+
self.expect("type lookup MyClass", substrs=["setF", "float getF"])

0 commit comments

Comments
 (0)