diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2019-09-03 16:26:44 +0000 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2019-09-03 16:26:44 +0000 |
commit | 063aac6cf30ba3274afbccb2a815fcac9977c8cb (patch) | |
tree | a55d1340edb8a7c16dd638d786968ed1ba6d7fcd /lldb/packages/Python/lldbsuite/test/lang/objc/foundation/TestFoundationDisassembly.py | |
parent | f792054fd2d312478c1034bb36c4a9f0e9878e51 (diff) | |
download | bcm5719-llvm-063aac6cf30ba3274afbccb2a815fcac9977c8cb.tar.gz bcm5719-llvm-063aac6cf30ba3274afbccb2a815fcac9977c8cb.zip |
[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
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/lang/objc/foundation/TestFoundationDisassembly.py')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/lang/objc/foundation/TestFoundationDisassembly.py | 11 |
1 files changed, 1 insertions, 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 bccdd834311..329407d448a 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( |