[pypy-svn] r35276 - pypy/branch/jit-real-world/pypy/jit/timeshifter/test

pedronis at codespeak.net pedronis at codespeak.net
Mon Dec 4 22:48:58 CET 2006


Author: pedronis
Date: Mon Dec  4 22:48:57 2006
New Revision: 35276

Modified:
   pypy/branch/jit-real-world/pypy/jit/timeshifter/test/test_timeshift.py
Log:
(arre, pedronis)

work in progress test about green call site for red returning graphs.



Modified: pypy/branch/jit-real-world/pypy/jit/timeshifter/test/test_timeshift.py
==============================================================================
--- pypy/branch/jit-real-world/pypy/jit/timeshifter/test/test_timeshift.py	(original)
+++ pypy/branch/jit-real-world/pypy/jit/timeshifter/test/test_timeshift.py	Mon Dec  4 22:48:57 2006
@@ -1132,3 +1132,17 @@
         res = self.timeshift(f, [4, 5], [0, 1], policy=P_NOVIRTUAL)
         assert res == 42
         self.check_insns({})
+
+    def test_green_red_mismatch_in_call(self):
+        py.test.skip("WIP")
+        def add(a,b, u):
+            return a+b
+
+        def f(x, y, u):
+            r = add(x+1,y+1, u)
+            z = x+y
+            hint(z, concrete=True)
+            return hint(z, variable=True)
+
+        res = self.timeshift(f, [4, 5, 0], [], policy=P_NOVIRTUAL)
+        assert res == 9



More information about the Pypy-commit mailing list