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

fijal at codespeak.net fijal at codespeak.net
Fri Feb 13 13:54:25 CET 2009


Author: fijal
Date: Fri Feb 13 13:54:23 2009
New Revision: 61826

Modified:
   pypy/branch/pyjitpl5/pypy/jit/metainterp/test/test_send.py
   pypy/branch/pyjitpl5/pypy/jit/metainterp/test/test_tl.py
Log:
Fix tests


Modified: pypy/branch/pyjitpl5/pypy/jit/metainterp/test/test_send.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/jit/metainterp/test/test_send.py	(original)
+++ pypy/branch/pyjitpl5/pypy/jit/metainterp/test/test_send.py	Fri Feb 13 13:54:23 2009
@@ -72,7 +72,7 @@
         res = self.meta_interp(f, [1], policy=StopAtXPolicy(externfn),
                                backendopt=True)
         assert res == 43
-        self.check_loops({'call_ptr': 1, 'guard_exception': 1,
+        self.check_loops({'call_ptr': 1, 'guard_no_exception': 1,
                           'getfield_gc': 1,
                           'int_add': 1, 'merge_point' : 1,
                           'jump': 1, 'int_gt' : 1, 'guard_true' : 1,

Modified: pypy/branch/pyjitpl5/pypy/jit/metainterp/test/test_tl.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/jit/metainterp/test/test_tl.py	(original)
+++ pypy/branch/pyjitpl5/pypy/jit/metainterp/test/test_tl.py	Fri Feb 13 13:54:23 2009
@@ -17,7 +17,6 @@
                 myjitdriver.can_enter_jit(y=y, pc=pc, acc=acc, s=s)
                 myjitdriver.jit_merge_point(y=y, pc=pc, acc=acc, s=s)
                 op = s[pc]
-                hint(op, concrete=True)
                 if op == '+':
                     acc += y
                 elif op == '-':
@@ -27,7 +26,7 @@
 
         codes = ["++++++++++", "+-++---+-++-"]
         def main(n, x, y):
-            code = hint(codes, deepfreeze=True)[n]
+            code = codes[n]
             return ll_plus_minus(code, x, y)
 
         res = self.meta_interp(main, [0, 100, 2])



More information about the Pypy-commit mailing list