[Lldb-commits] [lldb] r112660 - /lldb/trunk/test/class_types/TestClassTypes.py
Johnny Chen
johnny.chen at apple.com
Tue Aug 31 15:26:16 PDT 2010
Author: johnny
Date: Tue Aug 31 17:26:16 2010
New Revision: 112660
URL: http://llvm.org/viewvc/llvm-project?rev=112660&view=rev
Log:
Converted TestClassTypes.py to Dsym/Dwarf combination. Marked one test case as
expectedFailure because in dwarf format, "variable list this" returns an error.
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=112660&r1=112659&r2=112660&view=diff
==============================================================================
--- lldb/trunk/test/class_types/TestClassTypes.py (original)
+++ lldb/trunk/test/class_types/TestClassTypes.py Tue Aug 31 17:26:16 2010
@@ -9,7 +9,33 @@
mydir = "class_types"
- def test_class_types(self):
+ @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
+ def test_with_dsym_and_run_command(self):
+ """Test 'variable list this' when stopped on a class constructor."""
+ self.buildDsym()
+ self.class_types()
+
+ @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
+ def test_with_dsym_and_python_api(self):
+ """Use Python APIs to create a breakpoint by (filespec, line)."""
+ self.buildDsym()
+ self.breakpoint_creation_by_filespec_python()
+
+ # rdar://problem/8378863
+ # "variable list this" returns
+ # error: unable to find any variables named 'this'
+ @unittest2.expectedFailure
+ def test_with_dwarf_and_run_command(self):
+ """Test 'variable list this' when stopped on a class constructor."""
+ self.buildDwarf()
+ self.class_types()
+
+ def test_with_dwarf_and_python_api(self):
+ """Use Python APIs to create a breakpoint by (filespec, line)."""
+ self.buildDwarf()
+ self.breakpoint_creation_by_filespec_python()
+
+ def class_types(self):
"""Test 'variable list this' when stopped on a class constructor."""
exe = os.path.join(os.getcwd(), "a.out")
self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
@@ -33,7 +59,7 @@
self.expect("variable list this", VARIABLES_DISPLAYED_CORRECTLY,
startstr = '(class C *const) this = ')
- def test_breakpoint_creation_by_filespec_python(self):
+ def breakpoint_creation_by_filespec_python(self):
"""Use Python APIs to create a breakpoint by (filespec, line)."""
exe = os.path.join(os.getcwd(), "a.out")
More information about the lldb-commits
mailing list