[Lldb-commits] [lldb] r183364 - <rdar://problem/14064994>

Enrico Granata egranata at apple.com
Wed Jun 5 17:58:38 PDT 2013


Author: enrico
Date: Wed Jun  5 19:58:37 2013
New Revision: 183364

URL: http://llvm.org/viewvc/llvm-project?rev=183364&view=rev
Log:
<rdar://problem/14064994>

Fixing a test case to correctly check that the class name has changed instead of relying on GetValueDidChange()


Modified:
    lldb/trunk/test/lang/objc/objc-stepping/TestObjCStepping.py

Modified: lldb/trunk/test/lang/objc/objc-stepping/TestObjCStepping.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-stepping/TestObjCStepping.py?rev=183364&r1=183363&r2=183364&view=diff
==============================================================================
--- lldb/trunk/test/lang/objc/objc-stepping/TestObjCStepping.py (original)
+++ lldb/trunk/test/lang/objc/objc-stepping/TestObjCStepping.py Wed Jun  5 19:58:37 2013
@@ -94,7 +94,7 @@ class TestObjCStepping(TestBase):
         self.assertTrue(mySource, "Found mySource local variable.")
         mySource_isa = mySource.GetChildMemberWithName ("isa")
         self.assertTrue(mySource_isa, "Found mySource->isa local variable.")
-        mySource_isa.GetValue ()
+        className = mySource_isa.GetSummary ()
 
         if self.TraceOn():
              print mySource_isa
@@ -135,14 +135,13 @@ class TestObjCStepping(TestBase):
 
         threads = lldbutil.continue_to_breakpoint (process, break3)
         self.assertTrue (len(threads) == 1, "Continued to third breakpoint in main, our object should now be swizzled.")
-        
-        mySource_isa.GetValue ()
-        did_change = mySource_isa.GetValueDidChange ()
+
+        newClassName = mySource_isa.GetSummary ()
 
         if self.TraceOn():
              print mySource_isa
 
-        self.assertTrue (did_change, "The isa did indeed change, swizzled!")
+        self.assertTrue (newClassName != className, "The isa did indeed change, swizzled!")
 
         # Now step in, that should leave us in the Source randomMethod:
         thread = threads[0]





More information about the lldb-commits mailing list