[pypy-svn] r51710 - in pypy/branch/jit-refactoring/pypy/jit/rainbow: . test

cfbolz at codespeak.net cfbolz at codespeak.net
Wed Feb 20 22:59:16 CET 2008


Author: cfbolz
Date: Wed Feb 20 22:59:16 2008
New Revision: 51710

Modified:
   pypy/branch/jit-refactoring/pypy/jit/rainbow/   (props changed)
   pypy/branch/jit-refactoring/pypy/jit/rainbow/test/   (props changed)
   pypy/branch/jit-refactoring/pypy/jit/rainbow/test/test_portal.py
Log:
fixeol


Modified: pypy/branch/jit-refactoring/pypy/jit/rainbow/test/test_portal.py
==============================================================================
--- pypy/branch/jit-refactoring/pypy/jit/rainbow/test/test_portal.py	(original)
+++ pypy/branch/jit-refactoring/pypy/jit/rainbow/test/test_portal.py	Wed Feb 20 22:59:16 2008
@@ -112,12 +112,15 @@
 
         res = self.timeshift_from_portal(main, evaluate, [3, 2])
         assert res == 5
+        self.check_insns({"int_add": 1})
 
         res = self.timeshift_from_portal(main, evaluate, [3, 5])
         assert res == 8
+        self.check_insns({"int_add": 1})
 
         res = self.timeshift_from_portal(main, evaluate, [4, 7])
         assert res == 11
+        self.check_insns({"int_add": 1})
     
     def test_main_as_portal(self):
         def main(x):
@@ -125,6 +128,7 @@
 
         res = self.timeshift_from_portal(main, main, [42])
         assert res == 42
+        self.check_insns({})
 
     def test_multiple_portal_calls(self):
         py.test.skip("promote not implemented")



More information about the Pypy-commit mailing list