[pypy-commit] pypy jit-targets: fix tests

hakanardo noreply at buildbot.pypy.org
Tue Nov 8 10:27:03 CET 2011


Author: Hakan Ardo <hakan at debian.org>
Branch: jit-targets
Changeset: r48904:6ad136c18d39
Date: 2011-11-07 20:15 +0100
http://bitbucket.org/pypy/pypy/changeset/6ad136c18d39/

Log:	fix tests

diff --git a/pypy/jit/metainterp/test/test_ajit.py b/pypy/jit/metainterp/test/test_ajit.py
--- a/pypy/jit/metainterp/test/test_ajit.py
+++ b/pypy/jit/metainterp/test/test_ajit.py
@@ -3365,7 +3365,7 @@
         res = self.meta_interp(main, [10])
         assert res == main(10)
         self.check_resops({'int_gt': 2, 'strlen': 2, 'guard_true': 2,
-                           'int_sub': 2, 'jump': 2, 'call': 2,
+                           'int_sub': 2, 'jump': 1, 'call': 2,
                            'guard_no_exception': 2, 'int_add': 4})
 
     def test_look_inside_iff_const_getarrayitem_gc_pure(self):
@@ -3502,7 +3502,7 @@
 
         res = self.meta_interp(f, [10])
         assert res == 0
-        self.check_resops({'jump': 2, 'guard_true': 2, 'int_gt': 2,
+        self.check_resops({'jump': 1, 'guard_true': 2, 'int_gt': 2,
                            'int_sub': 2})
 
     def test_virtual_opaque_ptr(self):
@@ -3522,7 +3522,7 @@
             return n
         res = self.meta_interp(f, [10])
         assert res == 0
-        self.check_resops({'jump': 2, 'guard_true': 2, 'int_gt': 2,
+        self.check_resops({'jump': 1, 'guard_true': 2, 'int_gt': 2,
                            'int_sub': 2})
 
 
@@ -3545,7 +3545,7 @@
         res = self.meta_interp(f, [10])
         assert res == 0
         self.check_resops({'int_gt': 2, 'getfield_gc': 1, 'int_eq': 1,
-                           'guard_true': 2, 'int_sub': 2, 'jump': 2,
+                           'guard_true': 2, 'int_sub': 2, 'jump': 1,
                            'guard_false': 1})
 
 


More information about the pypy-commit mailing list