[pypy-svn] r66650 - pypy/branch/pyjitpl5/pypy/jit/metainterp/test

arigo at codespeak.net arigo at codespeak.net
Mon Jul 27 14:03:25 CEST 2009


Author: arigo
Date: Mon Jul 27 14:03:23 2009
New Revision: 66650

Modified:
   pypy/branch/pyjitpl5/pypy/jit/metainterp/test/test_basic.py
Log:
A failing test, showing the same problem as test_zlib when run with
pypy-c-jit.


Modified: pypy/branch/pyjitpl5/pypy/jit/metainterp/test/test_basic.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/jit/metainterp/test/test_basic.py	(original)
+++ pypy/branch/pyjitpl5/pypy/jit/metainterp/test/test_basic.py	Mon Jul 27 14:03:23 2009
@@ -730,6 +730,22 @@
 
         self.meta_interp(f, [40, 0])
 
+    def test_const_inputargs(self):
+        py.test.skip("in-progress")
+        myjitdriver = JitDriver(greens = ['m'], reds = ['n', 'x'])
+        def f(n, x):
+            m = 0x7FFFFFFF
+            while n > 0:
+                myjitdriver.can_enter_jit(m=m, n=n, x=x)
+                myjitdriver.jit_merge_point(m=m, n=n, x=x)
+                x = 42
+                n -= 1
+                m = m >> 1
+            return x
+
+        res = self.meta_interp(f, [50, 1])
+        assert res == 42
+
 
 class TestOOtype(BasicTests, OOJitMixin):
 



More information about the Pypy-commit mailing list