Skip to content

Commit 4397f63

Browse files
committed
[lldb][test][redecl-completion] XFAIL currently unsupported tests w/ lazy method loading
1 parent ff8fdb9 commit 4397f63

File tree

5 files changed

+25
-7
lines changed

5 files changed

+25
-7
lines changed

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

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

16+
@expectedFailureAll(setting=('plugin.typesystem.clang.experimental-redecl-completion', 'true'))
1617
def test_expr_completion(self):
1718
self.build()
1819
self.main_source = "main.cpp"

lldb/test/API/commands/expression/context-object/TestContextObject.py

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,29 @@
55
import lldb
66
import lldbsuite.test.lldbutil as lldbutil
77
from lldbsuite.test.lldbtest import *
8-
8+
from lldbsuite.test.decorators import *
99

1010
class ContextObjectTestCase(TestBase):
11+
@expectedFailureAll(setting=('plugin.typesystem.clang.experimental-redecl-completion', 'true'))
12+
def test_context_object_eval_function(self):
13+
"""Tests expression evaluation of functions in context of an object."""
14+
self.build()
15+
16+
(target, process, thread, bkpt) = lldbutil.run_to_source_breakpoint(
17+
self, "// Break here", self.main_source_spec
18+
)
19+
frame = thread.GetFrameAtIndex(0)
20+
for obj in "cpp_struct", "cpp_struct_ref":
21+
obj_val = frame.FindVariable(obj)
22+
self.assertTrue(obj_val.IsValid())
23+
24+
# Test functions evaluation
25+
value = obj_val.EvaluateExpression("function()")
26+
self.assertTrue(value.IsValid())
27+
self.assertSuccess(value.GetError())
28+
self.assertEqual(value.GetValueAsSigned(), 2222)
29+
30+
1131
def test_context_object(self):
1232
"""Tests expression evaluation in context of an object."""
1333
self.build()
@@ -35,12 +55,6 @@ def test_context_object(self):
3555
self.assertSuccess(value.GetError())
3656
self.assertEqual(value.GetValueAsSigned(), 1111)
3757

38-
# Test functions evaluation
39-
value = obj_val.EvaluateExpression("function()")
40-
self.assertTrue(value.IsValid())
41-
self.assertSuccess(value.GetError())
42-
self.assertEqual(value.GetValueAsSigned(), 2222)
43-
4458
# Test that we retrieve the right global
4559
value = obj_val.EvaluateExpression("global.field")
4660
self.assertTrue(value.IsValid())

lldb/test/API/commands/expression/import-std-module/empty-module/TestEmptyStdModule.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ class ImportStdModule(TestBase):
1515
@add_test_categories(["libc++"])
1616
@skipIfRemote
1717
@skipIf(compiler=no_match("clang"))
18+
@expectedFailureAll(setting=('plugin.typesystem.clang.experimental-redecl-completion', 'true'))
1819
def test(self):
1920
self.build()
2021

lldb/test/API/commands/expression/pr35310/TestExprsBug35310.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ def setUp(self):
1212
self.main_source = "main.cpp"
1313
self.main_source_spec = lldb.SBFileSpec(self.main_source)
1414

15+
@expectedFailureAll(setting=('plugin.typesystem.clang.experimental-redecl-completion', 'true'))
1516
def test_issue35310(self):
1617
"""Test invoking functions with non-standard linkage names.
1718

lldb/test/API/python_api/class_members/TestSBTypeClassMembers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ def setUp(self):
1919
self.source = "main.mm"
2020
self.line = line_number(self.source, "// set breakpoint here")
2121

22+
@expectedFailureAll(setting=('plugin.typesystem.clang.experimental-redecl-completion', 'true'))
2223
@skipUnlessDarwin
2324
def test(self):
2425
"""Test SBType APIs to fetch member function types."""

0 commit comments

Comments
 (0)