summaryrefslogtreecommitdiffstats
path: root/lldb/test/benchmarks/disassembly/TestXcode41Vs42GDBDisassembly.py
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2015-10-23 17:04:29 +0000
committerZachary Turner <zturner@google.com>2015-10-23 17:04:29 +0000
commit35d017f0fc38b53e31f1a44d07c3c142f5d3620b (patch)
tree9bb8d7e92d30ed6ea5387993d53a07e8f16a155c /lldb/test/benchmarks/disassembly/TestXcode41Vs42GDBDisassembly.py
parentd43fe0bd39ab70b739123853ebd0c2991512b9d7 (diff)
downloadbcm5719-llvm-35d017f0fc38b53e31f1a44d07c3c142f5d3620b.tar.gz
bcm5719-llvm-35d017f0fc38b53e31f1a44d07c3c142f5d3620b.zip
Add from __future__ import print_function everywhere.
Apparently there were tons of instances I missed last time, I guess I accidentally ran 2to3 non-recursively. This should be every occurrence of a print statement fixed to use a print function as well as from __future__ import print_function being added to every file. After this patch print statements will stop working everywhere in the test suite, and the print function should be used instead. llvm-svn: 251121
Diffstat (limited to 'lldb/test/benchmarks/disassembly/TestXcode41Vs42GDBDisassembly.py')
-rw-r--r--lldb/test/benchmarks/disassembly/TestXcode41Vs42GDBDisassembly.py20
1 files changed, 11 insertions, 9 deletions
diff --git a/lldb/test/benchmarks/disassembly/TestXcode41Vs42GDBDisassembly.py b/lldb/test/benchmarks/disassembly/TestXcode41Vs42GDBDisassembly.py
index 393119e1d84..913f9c00019 100644
--- a/lldb/test/benchmarks/disassembly/TestXcode41Vs42GDBDisassembly.py
+++ b/lldb/test/benchmarks/disassembly/TestXcode41Vs42GDBDisassembly.py
@@ -1,5 +1,7 @@
"""Disassemble lldb's Driver::MainLoop() functions comparing Xcode 4.1 vs. 4.2's gdb."""
+from __future__ import print_function
+
import lldb_shared
import os, sys
@@ -27,28 +29,28 @@ class XCode41Vs42GDBDisassembly(BenchBase):
@expectedFailureWindows("llvm.org/pr22274: need a pexpect replacement for windows")
def test_run_41_then_42(self):
"""Test disassembly on a large function with 4.1 vs. 4.2's gdb."""
- print
+ print()
self.run_gdb_disassembly(self.gdb_41_exe, self.exe, self.function, self.count)
- print "4.1 gdb benchmark:", self.stopwatch
+ print("4.1 gdb benchmark:", self.stopwatch)
self.gdb_41_avg = self.stopwatch.avg()
self.run_gdb_disassembly(self.gdb_42_exe, self.exe, self.function, self.count)
- print "4.2 gdb benchmark:", self.stopwatch
+ print("4.2 gdb benchmark:", self.stopwatch)
self.gdb_42_avg = self.stopwatch.avg()
- print "gdb_42_avg/gdb_41_avg: %f" % (self.gdb_42_avg/self.gdb_41_avg)
+ print("gdb_42_avg/gdb_41_avg: %f" % (self.gdb_42_avg/self.gdb_41_avg))
@benchmarks_test
@no_debug_info_test
@expectedFailureWindows("llvm.org/pr22274: need a pexpect replacement for windows")
def test_run_42_then_41(self):
"""Test disassembly on a large function with 4.1 vs. 4.2's gdb."""
- print
+ print()
self.run_gdb_disassembly(self.gdb_42_exe, self.exe, self.function, self.count)
- print "4.2 gdb benchmark:", self.stopwatch
+ print("4.2 gdb benchmark:", self.stopwatch)
self.gdb_42_avg = self.stopwatch.avg()
self.run_gdb_disassembly(self.gdb_41_exe, self.exe, self.function, self.count)
- print "4.1 gdb benchmark:", self.stopwatch
+ print("4.1 gdb benchmark:", self.stopwatch)
self.gdb_41_avg = self.stopwatch.avg()
- print "gdb_42_avg/gdb_41_avg: %f" % (self.gdb_42_avg/self.gdb_41_avg)
+ print("gdb_42_avg/gdb_41_avg: %f" % (self.gdb_42_avg/self.gdb_41_avg))
def run_gdb_disassembly(self, gdb_exe_path, exe, function, count):
import pexpect
@@ -89,5 +91,5 @@ class XCode41Vs42GDBDisassembly(BenchBase):
pass
if self.TraceOn():
- print "gdb disassembly benchmark:", str(self.stopwatch)
+ print("gdb disassembly benchmark:", str(self.stopwatch))
self.child = None
OpenPOWER on IntegriCloud