From cd493512121dbd5e81f5764d6d26a733aa73b80c Mon Sep 17 00:00:00 2001 From: Davide Italiano Date: Wed, 13 Mar 2019 02:44:32 +0000 Subject: [PATCH] [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 --- .../test/python_api/sbdata/TestSBData.py | 31 ------------------- 1 file changed, 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 9af1d2504d09..ee43cea9de48 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)