summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api
diff options
context:
space:
mode:
authorDavide Italiano <davide@freebsd.org>2019-03-13 02:44:32 +0000
committerDavide Italiano <davide@freebsd.org>2019-03-13 02:44:32 +0000
commitcd493512121dbd5e81f5764d6d26a733aa73b80c (patch)
tree319c76b8ee04581a55c0f966c0a183033f093bc5 /lldb/packages/Python/lldbsuite/test/python_api
parent6e64a14804e9a5c3dd75e7343ef22e795af4abfa (diff)
downloadbcm5719-llvm-cd493512121dbd5e81f5764d6d26a733aa73b80c.tar.gz
bcm5719-llvm-cd493512121dbd5e81f5764d6d26a733aa73b80c.zip
[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
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api')
-rw-r--r--lldb/packages/Python/lldbsuite/test/python_api/sbdata/TestSBData.py31
1 files changed, 0 insertions, 31 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/python_api/sbdata/TestSBData.py b/lldb/packages/Python/lldbsuite/test/python_api/sbdata/TestSBData.py
index 9af1d2504d0..ee43cea9de4 100644
--- a/lldb/packages/Python/lldbsuite/test/python_api/sbdata/TestSBData.py
+++ b/lldb/packages/Python/lldbsuite/test/python_api/sbdata/TestSBData.py
@@ -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)
OpenPOWER on IntegriCloud