[Lldb-commits] [lldb] r119162 - /lldb/trunk/test/class_types/TestClassTypes.py

Johnny Chen johnny.chen at apple.com
Mon Nov 15 10:04:54 PST 2010


Author: johnny
Date: Mon Nov 15 12:04:54 2010
New Revision: 119162

URL: http://llvm.org/viewvc/llvm-project?rev=119162&view=rev
Log:
Add test sequence for 'frame variable this' and 'expression this' when stopped
inside a ctor.

Modified:
    lldb/trunk/test/class_types/TestClassTypes.py

Modified: lldb/trunk/test/class_types/TestClassTypes.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/class_types/TestClassTypes.py?rev=119162&r1=119161&r2=119162&view=diff
==============================================================================
--- lldb/trunk/test/class_types/TestClassTypes.py (original)
+++ lldb/trunk/test/class_types/TestClassTypes.py Mon Nov 15 12:04:54 2010
@@ -176,10 +176,18 @@
         # Continue on inside the ctor() body...
         self.runCmd("thread step-over")
 
+        # Verify that 'frame variable this' gets the data type correct.
+        self.expect("frame variable this",VARIABLES_DISPLAYED_CORRECTLY,
+            substrs = ['class C *'])
+
         # Verify that frame variable -t this->m_c_int behaves correctly.
         self.expect("frame variable -t this->m_c_int", VARIABLES_DISPLAYED_CORRECTLY,
             startstr = '(int) this->m_c_int = 66')
 
+        # Verify that 'expression this' gets the data type correct.
+        self.expect("expression this", VARIABLES_DISPLAYED_CORRECTLY,
+            substrs = ['class C *'])
+
         # rdar://problem/8430916
         # expr this->m_c_int returns an incorrect value
         #





More information about the lldb-commits mailing list