[Lldb-commits] [lldb] a3093bf - [lldb] Let TestCppConstructors pass without fix-it intervention

Raphael Isemann via lldb-commits lldb-commits at lists.llvm.org
Wed Feb 19 02:04:02 PST 2020


Author: Raphael Isemann
Date: 2020-02-19T11:02:10+01:00
New Revision: a3093bfb3e7c4972e7ff7af1cc38452ec9984e13

URL: https://github.com/llvm/llvm-project/commit/a3093bfb3e7c4972e7ff7af1cc38452ec9984e13
DIFF: https://github.com/llvm/llvm-project/commit/a3093bfb3e7c4972e7ff7af1cc38452ec9984e13.diff

LOG: [lldb] Let TestCppConstructors pass without fix-it intervention

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.

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/lldb/test/API/lang/cpp/constructors/TestCppConstructors.py b/lldb/test/API/lang/cpp/constructors/TestCppConstructors.py
index b59b1ab9bfaf..77e17b93bbc9 100644
--- a/lldb/test/API/lang/cpp/constructors/TestCppConstructors.py
+++ b/lldb/test/API/lang/cpp/constructors/TestCppConstructors.py
@@ -30,4 +30,4 @@ def test_constructors_new(self):
         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")


        


More information about the lldb-commits mailing list