From 063aac6cf30ba3274afbccb2a815fcac9977c8cb Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Tue, 3 Sep 2019 16:26:44 +0000 Subject: [PATCH] [test] Remove print statements and verify that the symbol exists This removes some (commented out) print statements and adds a line that verifies that uses image list to check the symbol. llvm-svn: 370777 --- .../lang/objc/foundation/TestFoundationDisassembly.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/lldb/packages/Python/lldbsuite/test/lang/objc/foundation/TestFoundationDisassembly.py b/lldb/packages/Python/lldbsuite/test/lang/objc/foundation/TestFoundationDisassembly.py index bccdd8343115..329407d448a2 100644 --- a/lldb/packages/Python/lldbsuite/test/lang/objc/foundation/TestFoundationDisassembly.py +++ b/lldb/packages/Python/lldbsuite/test/lang/objc/foundation/TestFoundationDisassembly.py @@ -2,9 +2,6 @@ Test the lldb disassemble command on foundation framework. """ -from __future__ import print_function - - import unittest2 import os import lldb @@ -36,7 +33,6 @@ class FoundationDisassembleTestCase(TestBase): foundation_framework = None for module in target.modules: - print(module) if module.file.basename == "Foundation": foundation_framework = module.file.fullpath break @@ -61,8 +57,7 @@ class FoundationDisassembleTestCase(TestBase): match = codeRE.search(line) if match: func = match.group(1) - #print("line:", line) - #print("func:", func) + self.runCmd('image lookup -s "%s"' % func) self.runCmd('disassemble -n "%s"' % func) def test_simple_disasm(self): @@ -73,10 +68,6 @@ class FoundationDisassembleTestCase(TestBase): target = self.dbg.CreateTarget(self.getBuildArtifact("a.out")) self.assertTrue(target, VALID_TARGET) - print(target) - for module in target.modules: - print(module) - # Stop at +[NSString stringWithFormat:]. symbol_name = "+[NSString stringWithFormat:]" break_results = lldbutil.run_break_set_command(