forked from OSchip/llvm-project
[testsuite] Remove other traces broken in python 3.
They can be reinstated in case somebody needs to debug this test in the future. llvm-svn: 356002
This commit is contained in:
parent
6e64a14804
commit
cd49351212
|
@ -66,13 +66,8 @@ class SBDataAPICase(TestBase):
|
|||
self.assertIsNotNone(thread)
|
||||
|
||||
frame = thread.GetSelectedFrame()
|
||||
if self.TraceOn():
|
||||
print(frame)
|
||||
foobar = frame.FindVariable('foobar')
|
||||
self.assertTrue(foobar.IsValid())
|
||||
if self.TraceOn():
|
||||
print(foobar)
|
||||
|
||||
data = foobar.GetPointeeData(0, 2)
|
||||
offset = 0
|
||||
error = lldb.SBError()
|
||||
|
@ -130,9 +125,6 @@ class SBDataAPICase(TestBase):
|
|||
|
||||
data = star_foobar.GetData()
|
||||
|
||||
if self.TraceOn():
|
||||
print(data)
|
||||
|
||||
offset = 0
|
||||
self.assert_data(data.GetUnsignedInt32, offset, 1)
|
||||
offset += 4
|
||||
|
@ -151,14 +143,8 @@ class SBDataAPICase(TestBase):
|
|||
new_foobar = foobar.CreateValueFromAddress(
|
||||
"f00", foobar_addr, star_foobar.GetType())
|
||||
self.assertTrue(new_foobar.IsValid())
|
||||
if self.TraceOn():
|
||||
print(new_foobar)
|
||||
|
||||
data = new_foobar.GetData()
|
||||
|
||||
if self.TraceOn():
|
||||
print(data)
|
||||
|
||||
self.assertTrue(data.uint32[0] == 8, 'then foo[1].a == 8')
|
||||
self.assertTrue(data.uint32[1] == 7, 'then foo[1].b == 7')
|
||||
# exploiting that sizeof(uint32) == sizeof(float)
|
||||
|
@ -182,9 +168,6 @@ class SBDataAPICase(TestBase):
|
|||
|
||||
data = new_foobar.GetData()
|
||||
|
||||
if self.TraceOn():
|
||||
print(data)
|
||||
|
||||
offset = 0
|
||||
self.assert_data(data.GetUnsignedInt32, offset, 8)
|
||||
offset += 4
|
||||
|
@ -204,13 +187,6 @@ class SBDataAPICase(TestBase):
|
|||
barfoo = frame.FindVariable('barfoo')
|
||||
|
||||
data = barfoo.GetData()
|
||||
|
||||
if self.TraceOn():
|
||||
print(barfoo)
|
||||
|
||||
if self.TraceOn():
|
||||
print(data)
|
||||
|
||||
offset = 0
|
||||
self.assert_data(data.GetUnsignedInt32, offset, 1)
|
||||
offset += 4
|
||||
|
@ -241,10 +217,6 @@ 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.GetValue() == "1", 'new_object == 1')
|
||||
|
||||
if data.GetByteOrder() == lldb.eByteOrderBig:
|
||||
|
@ -271,9 +243,6 @@ class SBDataAPICase(TestBase):
|
|||
|
||||
data.Append(data2)
|
||||
|
||||
if self.TraceOn():
|
||||
print(data)
|
||||
|
||||
# this breaks on EBCDIC
|
||||
offset = 0
|
||||
self.assert_data(data.GetUnsignedInt32, offset, 65)
|
||||
|
|
Loading…
Reference in New Issue