[pypy-svn] r76656 - in pypy/trunk/pypy/jit/backend/x86: . test
cfbolz at codespeak.net
cfbolz at codespeak.net
Tue Aug 17 17:15:45 CEST 2010
Author: cfbolz
Date: Tue Aug 17 17:15:44 2010
New Revision: 76656
Modified:
pypy/trunk/pypy/jit/backend/x86/assembler.py
pypy/trunk/pypy/jit/backend/x86/test/test_runner.py
Log:
(cfbolz, arigo): make the output sortable
Modified: pypy/trunk/pypy/jit/backend/x86/assembler.py
==============================================================================
--- pypy/trunk/pypy/jit/backend/x86/assembler.py (original)
+++ pypy/trunk/pypy/jit/backend/x86/assembler.py Tue Aug 17 17:15:44 2010
@@ -241,7 +241,7 @@
f = open_file_as_stream(output_log, "w")
for i in range(len(self.loop_run_counters)):
name, struct = self.loop_run_counters[i]
- f.write(name + ":" + str(struct.i) + "\n")
+ f.write(str(struct.i) + " " * (8 - len(str(struct.i))) + name + "\n")
f.close()
def _build_float_constants(self):
Modified: pypy/trunk/pypy/jit/backend/x86/test/test_runner.py
==============================================================================
--- pypy/trunk/pypy/jit/backend/x86/test/test_runner.py (original)
+++ pypy/trunk/pypy/jit/backend/x86/test/test_runner.py Tue Aug 17 17:15:44 2010
@@ -503,4 +503,4 @@
assert struct.i == 10
self.cpu.finish_once()
lines = py.path.local(self.logfile + ".count").readlines()
- assert lines[0] == 'xyz:10\n'
+ assert lines[0] == '10 xyz\n'
More information about the Pypy-commit
mailing list