<rdar://problem/14064994>

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

llvm-svn: 183364
This commit is contained in:
Enrico Granata 2013-06-06 00:58:37 +00:00
parent 9de494e0ee
commit ed4b293b68
1 changed files with 4 additions and 5 deletions

View File

@ -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]