Author: Hakan Ardo <ha...@debian.org> Branch: jit-targets Changeset: r49485:f77a779d9a4e Date: 2011-11-17 08:00 +0100 http://bitbucket.org/pypy/pypy/changeset/f77a779d9a4e/
Log: fix tests diff --git a/pypy/jit/metainterp/test/test_quasiimmut.py b/pypy/jit/metainterp/test/test_quasiimmut.py --- a/pypy/jit/metainterp/test/test_quasiimmut.py +++ b/pypy/jit/metainterp/test/test_quasiimmut.py @@ -306,7 +306,7 @@ self.a = a @dont_look_inside def residual_call(foo, x): - if x == 5: + if x == 10: foo.a += 1 def f(a, x): foo = Foo(a) @@ -320,9 +320,9 @@ x -= 1 return total # - assert f(100, 15) == 3009 - res = self.meta_interp(f, [100, 15]) - assert res == 3009 + assert f(100, 30) == 6019 + res = self.meta_interp(f, [100, 30]) + assert res == 6019 self.check_resops(guard_not_invalidated=8, guard_not_forced=0, call_may_force=0, getfield_gc=0) @@ -435,7 +435,7 @@ self.lst = lst @dont_look_inside def residual_call(foo, x): - if x == 5: + if x == 10: lst2 = [0, 0] lst2[1] = foo.lst[1] + 1 foo.lst = lst2 @@ -453,9 +453,9 @@ x -= 1 return total # - assert f(100, 15) == 3009 - res = self.meta_interp(f, [100, 15]) - assert res == 3009 + assert f(100, 30) == 6019 + res = self.meta_interp(f, [100, 30]) + assert res == 6019 self.check_resops(call_may_force=0, getfield_gc=0, getarrayitem_gc_pure=0, guard_not_forced=0, getarrayitem_gc=0, guard_not_invalidated=8) @@ -478,7 +478,7 @@ return foo.step res = self.meta_interp(f, [60]) assert res == 1 - self.check_tree_loop_count(4) # at least not 2 like before + self.check_jitcell_token_count(2) class TestLLtypeGreenFieldsTests(QuasiImmutTests, LLJitMixin): _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit