[pypy-svn] r78618 - pypy/branch/jit-unroll-loops/pypy/jit/metainterp/test
hakanardo at codespeak.net
hakanardo at codespeak.net
Sun Oct 31 15:39:53 CET 2010
Author: hakanardo
Date: Sun Oct 31 15:39:51 2010
New Revision: 78618
Modified:
pypy/branch/jit-unroll-loops/pypy/jit/metainterp/test/test_send.py
Log:
fixed tests
Modified: pypy/branch/jit-unroll-loops/pypy/jit/metainterp/test/test_send.py
==============================================================================
--- pypy/branch/jit-unroll-loops/pypy/jit/metainterp/test/test_send.py (original)
+++ pypy/branch/jit-unroll-loops/pypy/jit/metainterp/test/test_send.py Sun Oct 31 15:39:51 2010
@@ -409,7 +409,10 @@
# we expect 1 loop, 1 entry bridge, and 1 bridge going from the
# loop back to the start of the entry bridge
self.check_loop_count(2) # 1 loop + 1 bridge
- self.check_tree_loop_count(2) # 1 loop + 1 entry bridge (argh)
+ if self.optimizer == OPTIMIZER_SIMPLE:
+ self.check_tree_loop_count(1) # 1 loop
+ else:
+ self.check_tree_loop_count(2) # 1 loop + 1 entry bridge (argh)
self.check_aborted_count(0)
def test_three_cases(self):
@@ -430,7 +433,10 @@
return node.x
res = self.meta_interp(f, [55])
assert res == f(55)
- self.check_tree_loop_count(2)
+ if self.optimizer == OPTIMIZER_SIMPLE:
+ self.check_tree_loop_count(1)
+ else:
+ self.check_tree_loop_count(2)
def test_three_classes(self):
class Base:
@@ -460,7 +466,10 @@
return n
res = self.meta_interp(f, [55], policy=StopAtXPolicy(extern))
assert res == f(55)
- self.check_tree_loop_count(2)
+ if self.optimizer == OPTIMIZER_SIMPLE:
+ self.check_tree_loop_count(1)
+ else:
+ self.check_tree_loop_count(2)
def test_bug1(self):
myjitdriver = JitDriver(greens = [], reds = ['n', 'node'])
More information about the Pypy-commit
mailing list