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

Johnny Chen johnny.chen at apple.com
Fri Oct 1 11:08:29 PDT 2010


Author: johnny
Date: Fri Oct  1 13:08:29 2010
New Revision: 115320

URL: http://llvm.org/viewvc/llvm-project?rev=115320&view=rev
Log:
Only skip the test cases which are currently crashing, instead of the whole class.
Also, the break by location needs to be modified after changees made to the main.cpp source code.

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=115320&r1=115319&r2=115320&view=diff
==============================================================================
--- lldb/trunk/test/class_types/TestClassTypes.py (original)
+++ lldb/trunk/test/class_types/TestClassTypes.py Fri Oct  1 13:08:29 2010
@@ -5,7 +5,6 @@
 import lldb
 from lldbtest import *
 
- at unittest2.skip("crash currently: rdar://problem/8502549")
 class ClassTypesTestCase(TestBase):
 
     mydir = "class_types"
@@ -35,12 +34,14 @@
         self.buildDwarf()
         self.breakpoint_creation_by_filespec_python()
 
+    @unittest2.skip("crash currently: rdar://problem/8502549")
     @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
     def test_with_dsym_and_expr_parser(self):
         """Test 'frame variable this' and 'expr this' when stopped inside a constructor."""
         self.buildDsym()
         self.class_types_expr_parser()
 
+    @unittest2.skip("crash currently: rdar://problem/8502549")
     def test_with_dwarf_and_expr_parser(self):
         """Test 'frame variable this' and 'expr this' when stopped inside a constructor."""
         self.buildDwarf()
@@ -52,8 +53,8 @@
         self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
 
         # Break on the ctor function of class C.
-        self.expect("breakpoint set -f main.cpp -l 73", BREAKPOINT_CREATED,
-            startstr = "Breakpoint created: 1: file ='main.cpp', line = 73, locations = 1")
+        self.expect("breakpoint set -f main.cpp -l 93", BREAKPOINT_CREATED,
+            startstr = "Breakpoint created: 1: file ='main.cpp', line = 93, locations = 1")
 
         self.runCmd("run", RUN_SUCCEEDED)
 
@@ -88,12 +89,12 @@
 
         bpfilespec = lldb.SBFileSpec("main.cpp")
 
-        breakpoint = target.BreakpointCreateByLocation(bpfilespec, 73)
+        breakpoint = target.BreakpointCreateByLocation(bpfilespec, 93)
         self.assertTrue(breakpoint.IsValid(), VALID_BREAKPOINT)
 
         # Verify the breakpoint just created.
         self.expect("breakpoint list", BREAKPOINT_CREATED,
-            substrs = ['main.cpp:73'])
+            substrs = ['main.cpp:93'])
 
         self.runCmd("run", RUN_SUCCEEDED)
 





More information about the lldb-commits mailing list