[lldb][NFC] Remove 'from __future__ import print_function' from all tests that don't actually call 'print()'

Summary:
A lot of tests do this trick but the vast majority of them don't even call `print()`.

Most of this patch was generated by a script that just looks at all the files and deletes the line if there is no `print (` or `print(` anywhere else in the file.
I checked the remaining tests manually and deleted the import if we never call print (but instead do stuff like `expr print(...)` and similar false-positives).
I also corrected the additional empty lines after the import in the files that I manually edited.

Reviewers: JDevlieghere, labath, jfb

Reviewed By: labath

Subscribers: dexonsmith, wuzish, nemanjai, kbarton, christof, arphaman, abidh, lldb-commits

Tags: #lldb

Differential Revision: https://reviews.llvm.org/D71452
This commit is contained in:
Raphael Isemann 2019-12-13 12:11:23 +01:00
parent caa7c9e6f3
commit a52a11139c
514 changed files with 0 additions and 536 deletions

View File

@ -2,7 +2,6 @@
Verify the default cache line size for android targets
"""
from __future__ import print_function
import lldb

View File

@ -2,7 +2,6 @@
Test that we can listen to modules loaded events.
"""
from __future__ import print_function
import lldb

View File

@ -2,7 +2,6 @@
Test that breakpoints in an IT instruction don't fire if their condition is
false.
"""
from __future__ import print_function
import lldb

View File

@ -2,7 +2,6 @@
Test that breakpoints correctly work in an thumb function in an arbitrary
named codesection.
"""
from __future__ import print_function
import lldb

View File

@ -1,6 +1,5 @@
"""Test that the 'add-dsym', aka 'target symbols add', command informs the user about success or failure."""
from __future__ import print_function
import os

View File

@ -2,7 +2,6 @@
Test that apropos env doesn't crash trying to touch the process plugin command
"""
from __future__ import print_function
import lldb

View File

@ -2,7 +2,6 @@
Test the command history mechanism
"""
from __future__ import print_function
import lldb

View File

@ -2,7 +2,6 @@
Test that an alias can reference other aliases without crashing.
"""
from __future__ import print_function
import lldb

View File

@ -2,7 +2,6 @@
Test lldb Python commands.
"""
from __future__ import print_function
import sys
import lldb

View File

@ -1,5 +1,4 @@
from __future__ import print_function
import lldb

View File

@ -1,6 +1,5 @@
"""Test custom import command to import files by path."""
from __future__ import print_function
import lldb

View File

@ -1,6 +1,5 @@
"""Check that we handle an ImportError in a special way when command script importing files."""
from __future__ import print_function
import lldb

View File

@ -2,7 +2,6 @@
Test lldb Python commands.
"""
from __future__ import print_function
import lldb

View File

@ -2,7 +2,6 @@
Test that lldb command "command source" works correctly.
"""
from __future__ import print_function
import lldb

View File

@ -2,7 +2,6 @@
Test some lldb command abbreviations.
"""
from __future__ import print_function
import lldb

View File

@ -2,7 +2,6 @@
Test to ensure SBFrame::Disassemble produces SOME output
"""
from __future__ import print_function
import lldb

View File

@ -6,7 +6,6 @@ untagged structures.
Ticket: https://llvm.org/bugs/show_bug.cgi?id=26790
"""
from __future__ import print_function
import lldb

View File

@ -2,7 +2,6 @@
Test calling an expression without a target.
"""
from __future__ import print_function
import lldb

View File

@ -2,7 +2,6 @@
Tests calling builtin functions using expression evaluation.
"""
from __future__ import print_function
import lldb

View File

@ -2,7 +2,6 @@
Test calling std::String member functions.
"""
from __future__ import print_function
import lldb

View File

@ -2,7 +2,6 @@
Test calling a function, stopping in the call, continue and gather the result on stop.
"""
from __future__ import print_function
import lldb

View File

@ -7,7 +7,6 @@ Note:
"""
from __future__ import print_function
import lldb

View File

@ -2,7 +2,6 @@
Test calling a function that hits a signal set to auto-restart, make sure the call completes.
"""
from __future__ import print_function
import lldb

View File

@ -2,7 +2,6 @@
Test calling a function that throws an ObjC exception, make sure that it doesn't propagate the exception.
"""
from __future__ import print_function
import lldb

View File

@ -1,4 +1,3 @@
from __future__ import print_function
import lldb

View File

@ -2,7 +2,6 @@
Test the lldb command line completion mechanism for the 'expr' command.
"""
from __future__ import print_function
import lldb
from lldbsuite.test.decorators import *

View File

@ -2,7 +2,6 @@
Test that --allow-jit=false does disallow JITting:
"""
from __future__ import print_function
import lldb

View File

@ -1,8 +1,5 @@
"""Test that we are able to evaluate expressions when the inferior is blocked in a syscall"""
from __future__ import print_function
import lldb
from lldbsuite.test.decorators import *
from lldbsuite.test.lldbtest import *

View File

@ -2,7 +2,6 @@
Test calling an expression with errors that a FixIt can fix.
"""
from __future__ import print_function
import lldb

View File

@ -2,7 +2,6 @@
Test using LLDB data formatters with frozen objects coming from the expression parser.
"""
from __future__ import print_function
import lldb

View File

@ -2,7 +2,6 @@
Test the IR interpreter
"""
from __future__ import print_function
import unittest2

View File

@ -4,7 +4,6 @@ valobj.AddressOf() returns None when an address is
expected in a SyntheticChildrenProvider
"""
from __future__ import print_function
import lldb

View File

@ -1,4 +1,3 @@
from __future__ import print_function
import lldb

View File

@ -7,7 +7,6 @@ o test_expr_options:
Test expression command options.
"""
from __future__ import print_function
import lldb

View File

@ -2,7 +2,6 @@
Test that we can p *objcObject
"""
from __future__ import print_function
import lldb

View File

@ -2,7 +2,6 @@
Test that we can have persistent pointer variables
"""
from __future__ import print_function
import lldb

View File

@ -2,7 +2,6 @@
Test that nested persistent types work.
"""
from __future__ import print_function
import lldb

View File

@ -2,7 +2,6 @@
Test that lldb persistent types works correctly.
"""
from __future__ import print_function
import lldb

View File

@ -2,7 +2,6 @@
Test that lldb persistent variables works correctly.
"""
from __future__ import print_function
import lldb

View File

@ -2,7 +2,6 @@
Test that the po command acts correctly.
"""
from __future__ import print_function
import lldb

View File

@ -1,4 +1,3 @@
from __future__ import print_function
import lldb
from lldbsuite.test.decorators import *

View File

@ -2,7 +2,6 @@
Test the robustness of lldb expression parser.
"""
from __future__ import print_function
import lldb

View File

@ -2,7 +2,6 @@
The evaluating printf(...) after break stop and then up a stack frame.
"""
from __future__ import print_function
import lldb

View File

@ -2,7 +2,6 @@
Test example snippets from the lldb 'help expression' output.
"""
from __future__ import print_function
import lldb

View File

@ -2,7 +2,6 @@
Test that LLDB can emit JIT objects when the appropriate setting is enabled
"""
from __future__ import print_function
import os
import lldb

View File

@ -1,4 +1,3 @@
from __future__ import print_function
import lldb

View File

@ -11,7 +11,6 @@ o test_expr_commands_can_handle_quotes:
Throw some expression commands with quotes at lldb.
"""
from __future__ import print_function
import unittest2

View File

@ -2,7 +2,6 @@
Test some more expression commands.
"""
from __future__ import print_function
import lldb

View File

@ -2,7 +2,6 @@
Test calling a function that waits a while, and make sure the timeout option to expr works.
"""
from __future__ import print_function
import lldb

View File

@ -2,7 +2,6 @@
Test top-level expressions.
"""
from __future__ import print_function
import unittest2

View File

@ -4,7 +4,6 @@ Regression test for <rdar://problem/8981098>:
The expression parser's type search only looks in the current compilation unit for types.
"""
from __future__ import print_function
import lldb

View File

@ -2,7 +2,6 @@
Test stopping at a breakpoint in an expression, and unwinding from there.
"""
from __future__ import print_function
import unittest2

View File

@ -3,7 +3,6 @@ Test that we can compile expressions referring to
absent weak symbols from a dylib.
"""
from __future__ import print_function
import os

View File

@ -1,4 +1,3 @@
from __future__ import print_function
import lldb

View File

@ -2,7 +2,6 @@
Test the output of `frame diagnose` for an array access
"""
from __future__ import print_function
import lldb
from lldbsuite.test.decorators import *

View File

@ -2,7 +2,6 @@
Test the output of `frame diagnose` for dereferencing a bad reference
"""
from __future__ import print_function
import lldb
from lldbsuite.test.decorators import *

View File

@ -2,7 +2,6 @@
Test the output of `frame diagnose` for a subexpression of a complicated expression
"""
from __future__ import print_function
import lldb
from lldbsuite.test.decorators import *

View File

@ -2,7 +2,6 @@
Test the output of `frame diagnose` for dereferencing a function argument
"""
from __future__ import print_function
import lldb
from lldbsuite.test.decorators import *

View File

@ -2,7 +2,6 @@
Test the output of `frame diagnose` for dereferencing a function's return value
"""
from __future__ import print_function
import lldb
from lldbsuite.test.decorators import *

View File

@ -2,7 +2,6 @@
Test the output of `frame diagnose` for dereferencing `this`
"""
from __future__ import print_function
import lldb
from lldbsuite.test.decorators import *

View File

@ -2,7 +2,6 @@
Test the output of `frame diagnose` for calling virtual methods
"""
from __future__ import print_function
import lldb
from lldbsuite.test.decorators import *

View File

@ -2,7 +2,6 @@
Test the output of `frame diagnose` for dereferencing a local variable
"""
from __future__ import print_function
import lldb
from lldbsuite.test.decorators import *

View File

@ -2,7 +2,6 @@
Test the output of `frame diagnose` for calling virtual methods
"""
from __future__ import print_function
import lldb
from lldbsuite.test.decorators import *

View File

@ -2,7 +2,6 @@
Test the SB API SBFrame::GuessLanguage.
"""
from __future__ import print_function
import lldb

View File

@ -2,7 +2,6 @@
Make sure the frame variable -g, -a, and -l flags work.
"""
from __future__ import print_function
import lldb

View File

@ -4,7 +4,6 @@ Test some lldb help commands.
See also CommandInterpreter::OutputFormattedHelpText().
"""
from __future__ import print_function
import os

View File

@ -2,7 +2,6 @@
Test lldb logging. This test just makes sure logging doesn't crash, and produces some output.
"""
from __future__ import print_function
import os

View File

@ -2,7 +2,6 @@
Test some lldb platform commands.
"""
from __future__ import print_function
import lldb

View File

@ -2,7 +2,6 @@
Test the lldb platform Python API.
"""
from __future__ import print_function
import lldb

View File

@ -2,7 +2,6 @@
Test process list.
"""
from __future__ import print_function
import os

View File

@ -2,7 +2,6 @@
Test process attach/resume.
"""
from __future__ import print_function
import lldb

View File

@ -2,7 +2,6 @@
Test process attach.
"""
from __future__ import print_function
import os

View File

@ -2,7 +2,6 @@
Test denied process attach.
"""
from __future__ import print_function
import time

View File

@ -1,7 +1,6 @@
"""
Test that argdumper is a viable launching strategy.
"""
from __future__ import print_function
import os

View File

@ -2,7 +2,6 @@
Test lldb's quit command.
"""
from __future__ import print_function
import lldb
from lldbsuite.test.decorators import *

View File

@ -2,7 +2,6 @@
Test the Intel(R) MPX registers.
"""
from __future__ import print_function
import lldb

View File

@ -2,7 +2,6 @@
Test the Intel(R) MPX bound violation signal.
"""
from __future__ import print_function
import lldb

View File

@ -2,7 +2,6 @@
Test Intel(R) MPX registers do not get overwritten by AVX data.
"""
from __future__ import print_function
import lldb

View File

@ -2,7 +2,6 @@
Test lldb settings command.
"""
from __future__ import print_function
import os

View File

@ -2,7 +2,6 @@
Test quoting of arguments to lldb commands
"""
from __future__ import print_function

View File

@ -2,7 +2,6 @@
Test some target commands: create, list, select, variable.
"""
from __future__ import print_function
import os
import stat
import tempfile

View File

@ -3,7 +3,6 @@ Test that loading of dependents works correctly for all the potential
combinations.
"""
from __future__ import print_function
import lldb
from lldbsuite.test.decorators import *

View File

@ -1,7 +1,6 @@
"""
Test that using a non-existent architecture name does not crash LLDB.
"""
from __future__ import print_function
import lldb

View File

@ -2,7 +2,6 @@
Test that stop hooks trigger on "step-out"
"""
from __future__ import print_function
import lldb

View File

@ -2,7 +2,6 @@
Test lldb watchpoint that uses '-s size' to watch a pointed location with size.
"""
from __future__ import print_function
import re

View File

@ -2,7 +2,6 @@
Test my first lldb watchpoint.
"""
from __future__ import print_function
import lldb

View File

@ -4,7 +4,6 @@ within same word boundary. We should be able to install individual watchpoints
on any of the bytes, half-word, or word. This is only for ARM/AArch64 targets.
"""
from __future__ import print_function
import lldb
from lldbsuite.test.decorators import *

View File

@ -2,7 +2,6 @@
Test handling of cases when a single instruction triggers multiple watchpoints
"""
from __future__ import print_function
import lldb

View File

@ -1,6 +1,5 @@
"""Test stepping over watchpoints."""
from __future__ import print_function
import lldb

View File

@ -2,7 +2,6 @@
Test that a variable watchpoint should only hit when in scope.
"""
from __future__ import print_function
import unittest2

View File

@ -2,7 +2,6 @@
Test watchpoint list, enable, disable, and delete commands.
"""
from __future__ import print_function
import lldb

View File

@ -2,7 +2,6 @@
Test 'watchpoint command'.
"""
from __future__ import print_function
import lldb

View File

@ -2,7 +2,6 @@
Test 'watchpoint command'.
"""
from __future__ import print_function
import os

View File

@ -2,7 +2,6 @@
Test watchpoint modify command to set condition on a watchpoint.
"""
from __future__ import print_function
import lldb

View File

@ -2,7 +2,6 @@
Test displayed value of a vector variable while doing watchpoint operations
"""
from __future__ import print_function
import lldb

View File

@ -2,7 +2,6 @@
Test lldb watchpoint that uses 'watchpoint set -w write -s size' to watch a pointed location with size.
"""
from __future__ import print_function
import lldb

View File

@ -5,7 +5,6 @@ when they are packed in a 8-byte region.
"""
from __future__ import print_function
import lldb
from lldbsuite.test.decorators import *

View File

@ -10,7 +10,6 @@ until exit or a crash takes place, and the number of events seen by LLDB is
verified to match the expected number of events.
"""
from __future__ import print_function
import unittest2

View File

@ -1,5 +1,4 @@
from __future__ import absolute_import
from __future__ import print_function
# System modules
from distutils.version import LooseVersion

View File

@ -1,4 +1,3 @@
from __future__ import print_function
from __future__ import absolute_import
# System modules

Some files were not shown because too many files have changed in this diff Show More