[pypy-commit] pypy continulet-jit-3: A failing test

arigo noreply at buildbot.pypy.org
Fri Oct 19 19:33:06 CEST 2012


Author: Armin Rigo <arigo at tunes.org>
Branch: continulet-jit-3
Changeset: r58253:92643ca9b8f6
Date: 2012-10-19 19:32 +0200
http://bitbucket.org/pypy/pypy/changeset/92643ca9b8f6/

Log:	A failing test

diff --git a/pypy/jit/metainterp/test/test_recursive.py b/pypy/jit/metainterp/test/test_recursive.py
--- a/pypy/jit/metainterp/test/test_recursive.py
+++ b/pypy/jit/metainterp/test/test_recursive.py
@@ -783,6 +783,10 @@
             portal(codeno, frame)
             return frame.thing.val
 
+        @dont_look_inside
+        def escaping(f, t1):
+            assert f.thing is t1
+
         def portal(codeno, frame):
             i = 0
             while i < 10:
@@ -793,8 +797,10 @@
                     subframe = Frame()
                     subframe.thing = Thing(nextval)
                     nextval = portal(1, subframe)
-                    if subframe.thing.val != nextval:
+                    t1 = subframe.thing
+                    if t1.val != nextval:
                         raise Oups
+                    escaping(subframe, t1)
                 frame.thing = Thing(nextval + 1)
                 i += 1
             return frame.thing.val


More information about the pypy-commit mailing list