[lldb] Let TestCppConstructors pass without fix-it intervention
authorRaphael Isemann <teemperor@gmail.com>
Wed, 19 Feb 2020 10:02:08 +0000 (11:02 +0100)
committerRaphael Isemann <teemperor@gmail.com>
Wed, 19 Feb 2020 10:02:10 +0000 (11:02 +0100)
This should use -> instead of '.', but the fix-it functionality of
the expression evaluator saved us here. Let's use the proper syntax
in the first place as we don't want to test fix-its here.

lldb/test/API/lang/cpp/constructors/TestCppConstructors.py

index b59b1ab..77e17b9 100644 (file)
@@ -30,4 +30,4 @@ class TestCase(TestBase):
         self.build()
         lldbutil.run_to_source_breakpoint(self,"// break here", lldb.SBFileSpec("main.cpp"))
 
-        self.expect_expr("(new ClassWithOneCtor(1)).value; 1", result_type="int", result_value="1")
+        self.expect_expr("(new ClassWithOneCtor(1))->value; 1", result_type="int", result_value="1")