Author: Hakan Ardo <ha...@debian.org> Branch: jit-short_from_state Changeset: r46399:f3b40dc20466 Date: 2011-08-09 18:36 +0200 http://bitbucket.org/pypy/pypy/changeset/f3b40dc20466/
Log: fix test diff --git a/pypy/jit/metainterp/test/test_jitdriver.py b/pypy/jit/metainterp/test/test_jitdriver.py --- a/pypy/jit/metainterp/test/test_jitdriver.py +++ b/pypy/jit/metainterp/test/test_jitdriver.py @@ -123,7 +123,11 @@ res = self.meta_interp(loop2, [4, 40], repeat=7, inline=True) assert res == loop2(4, 40) # we expect no loop at all for 'loop1': it should always be inlined - self.check_tree_loop_count(2) # 1 x loop, 1 x enter bridge + # we do however get several version of 'loop2', all of which contains + # at least one int_add, while there are no int_add's in 'loop1' + self.check_tree_loop_count(5) + for loop in get_stats().loops: + assert loop.summary()['int_add'] >= 1 def test_inactive_jitdriver(self): myjitdriver1 = JitDriver(greens=[], reds=['n', 'm'], _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit