forked from OSchip/llvm-project
Test should print to stdout only if self.TraceOn() is True.
llvm-svn: 139174
This commit is contained in:
parent
de4958fb28
commit
1ac383c68d
|
@ -56,10 +56,12 @@ class SBDataAPICase(TestBase):
|
|||
|
||||
foobar = frame.FindVariable('foobar')
|
||||
|
||||
if self.TraceOn():
|
||||
print foobar
|
||||
|
||||
data = foobar.GetPointeeData(0, 2)
|
||||
|
||||
if self.TraceOn():
|
||||
print data
|
||||
|
||||
offset = 0
|
||||
|
@ -99,6 +101,7 @@ class SBDataAPICase(TestBase):
|
|||
|
||||
data = star_foobar.GetData()
|
||||
|
||||
if self.TraceOn():
|
||||
print data
|
||||
|
||||
offset = 0
|
||||
|
@ -111,10 +114,12 @@ class SBDataAPICase(TestBase):
|
|||
|
||||
new_foobar = foobar.CreateValueFromAddress("f00", foobar_addr, star_foobar.GetType())
|
||||
|
||||
if self.TraceOn():
|
||||
print new_foobar
|
||||
|
||||
data = new_foobar.GetData()
|
||||
|
||||
if self.TraceOn():
|
||||
print data
|
||||
|
||||
offset = 0
|
||||
|
@ -135,6 +140,7 @@ class SBDataAPICase(TestBase):
|
|||
|
||||
data = new_foobar.GetData()
|
||||
|
||||
if self.TraceOn():
|
||||
print data
|
||||
|
||||
offset = 0
|
||||
|
@ -150,8 +156,10 @@ class SBDataAPICase(TestBase):
|
|||
|
||||
data = barfoo.GetData()
|
||||
|
||||
if self.TraceOn():
|
||||
print barfoo
|
||||
|
||||
if self.TraceOn():
|
||||
print data
|
||||
|
||||
offset = 0
|
||||
|
@ -169,6 +177,7 @@ class SBDataAPICase(TestBase):
|
|||
|
||||
new_object = barfoo.CreateValueFromData("new_object",data,barfoo.GetType().GetBasicType(lldb.eBasicTypeInt))
|
||||
|
||||
if self.TraceOn():
|
||||
print new_object
|
||||
|
||||
self.assertTrue(new_object.GetLoadAddress() == 0xFFFFFFFFFFFFFFFF, 'GetLoadAddress() == invalid')
|
||||
|
@ -184,6 +193,7 @@ class SBDataAPICase(TestBase):
|
|||
|
||||
data.Append(data2)
|
||||
|
||||
if self.TraceOn():
|
||||
print data
|
||||
|
||||
# this breaks on EBCDIC
|
||||
|
|
Loading…
Reference in New Issue