[pypy-svn] r52231 - pypy/branch/jit-refactoring/pypy/jit/rainbow/test

arigo at codespeak.net arigo at codespeak.net
Thu Mar 6 22:04:00 CET 2008


Author: arigo
Date: Thu Mar  6 22:03:59 2008
New Revision: 52231

Modified:
   pypy/branch/jit-refactoring/pypy/jit/rainbow/test/test_interpreter.py
Log:
This failing test shows the next pypy-c-jit failure that I encoutered.
Sleeping now, feel free to fix :-)


Modified: pypy/branch/jit-refactoring/pypy/jit/rainbow/test/test_interpreter.py
==============================================================================
--- pypy/branch/jit-refactoring/pypy/jit/rainbow/test/test_interpreter.py	(original)
+++ pypy/branch/jit-refactoring/pypy/jit/rainbow/test/test_interpreter.py	Thu Mar  6 22:03:59 2008
@@ -1470,21 +1470,23 @@
         self.check_insns(indirect_call=1)
 
     def test_constant_indirect_red_call(self):
-        def h1(x):
+        py.test.skip("XXX fix me")
+        def h1(m, n, x):
             return x-2
-        def h2(x):
+        def h2(m, n, x):
             return x*4
         l = [h1, h2]
-        def f(n, x):
+        def f(m, n, x):
+            m = hint(m, concrete=True)
             frozenl = hint(l, deepfreeze=True)
             h = frozenl[n&1]
-            return h(x)
+            return h(m, 5, x)
 
         P = StopAtXPolicy()
-        res = self.interpret(f, [7, 3], [0], policy=P)
+        res = self.interpret(f, [1, 7, 3], [0, 1], policy=P)
         assert res == f(7,3)
         self.check_insns({'int_mul': 1})
-        res = self.interpret(f, [4, 113], [0], policy=P)
+        res = self.interpret(f, [1, 4, 113], [0, 1], policy=P)
         assert res == f(4,113)
         self.check_insns({'int_sub': 1})
 


More information about the pypy-svn mailing list