[pypy-commit] pypy default: Fix the test to again test what it was intended to test. It curently fails

hakanardo noreply at buildbot.pypy.org
Fri Dec 23 11:05:15 CET 2011


Author: Hakan Ardo <hakan at debian.org>
Branch: 
Changeset: r50828:27228df2fb9a
Date: 2011-12-23 11:04 +0100
http://bitbucket.org/pypy/pypy/changeset/27228df2fb9a/

Log:	Fix the test to again test what it was intended to test. It curently
	fails

diff --git a/pypy/jit/backend/x86/test/test_runner.py b/pypy/jit/backend/x86/test/test_runner.py
--- a/pypy/jit/backend/x86/test/test_runner.py
+++ b/pypy/jit/backend/x86/test/test_runner.py
@@ -521,14 +521,20 @@
 
         loop = """
         [i0]
-        label(i0, descr=targettoken)
+        label(i0, descr=preambletoken)
         debug_merge_point('xyz', 0)
         i1 = int_add(i0, 1)
         i2 = int_ge(i1, 10)
         guard_false(i2) []
-        jump(i1, descr=targettoken)
+        label(i1, descr=targettoken)
+        debug_merge_point('xyz', 0)
+        i11 = int_add(i1, 1)
+        i12 = int_ge(i11, 10)
+        guard_false(i12) []
+        jump(i11, descr=targettoken)
         """
-        ops = parse(loop, namespace={'targettoken': TargetToken()})
+        ops = parse(loop, namespace={'targettoken': TargetToken(),
+                                     'preambletoken': TargetToken()})
         debug._log = dlog = debug.DebugLog()
         try:
             self.cpu.assembler.set_debug(True)
@@ -537,6 +543,8 @@
             self.cpu.execute_token(looptoken, 0)
             # check debugging info
             struct = self.cpu.assembler.loop_run_counters[0]
+            assert struct.i == 1
+            struct = self.cpu.assembler.loop_run_counters[1]
             assert struct.i == 10
             self.cpu.finish_once()
         finally:


More information about the pypy-commit mailing list