Skip to content

Commit 69b3363

Browse files
committed
[lldb] X-fail tests that use constructors in expressions on Windows
These tests were testing a bug related to constructors. It seems that on Windows the expression command can't construct objects (or at least, call their constructor explicitly which is required for the tests), so this is just x-failing them until Windows actually supports constructor calls. llvm-svn: 375173
1 parent a0f6c64 commit 69b3363

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

lldb/packages/Python/lldbsuite/test/commands/expression/call-overridden-method/TestCallOverriddenMethod.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,20 @@ def test(self):
5353
# Test with locally constructed instances.
5454
self.expect("expr Base().foo()", substrs=["1"])
5555
self.expect("expr Derived().foo()", substrs=["2"])
56+
57+
@expectedFailureAll(oslist=["windows"], bugnumber="llvm.org/pr43707")
58+
def test_call_on_temporary(self):
59+
"""Test calls to overridden methods in derived classes."""
60+
self.build()
61+
62+
# Set breakpoint in main and run exe
63+
self.runCmd("file " + self.getBuildArtifact("a.out"),
64+
CURRENT_EXECUTABLE_SET)
65+
lldbutil.run_break_set_by_file_and_line(
66+
self, "main.cpp", self.line, num_expected_locations=-1, loc_exact=True)
67+
68+
self.runCmd("run", RUN_SUCCEEDED)
69+
70+
# Test with locally constructed instances.
71+
self.expect("expr Base().foo()", substrs=["1"])
72+
self.expect("expr Derived().foo()", substrs=["2"])
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from lldbsuite.test import lldbinline
22
from lldbsuite.test import decorators
33

4-
lldbinline.MakeInlineTest(__file__, globals(), None)
4+
lldbinline.MakeInlineTest(__file__, globals(), [lldbinline.expectedFailureAll(
5+
oslist=["windows"], bugnumber="llvm.org/pr43707")])

0 commit comments

Comments
 (0)