Author: Maciej Fijalkowski <[email protected]>
Branch: jitcounter-on-function
Changeset: r44965:5e32e2314631
Date: 2011-06-16 10:28 +0200
http://bitbucket.org/pypy/pypy/changeset/5e32e2314631/
Log: improve the test, does not work so far
diff --git a/pypy/jit/metainterp/test/test_recursive.py
b/pypy/jit/metainterp/test/test_recursive.py
--- a/pypy/jit/metainterp/test/test_recursive.py
+++ b/pypy/jit/metainterp/test/test_recursive.py
@@ -1204,9 +1204,17 @@
portal(c, i - 1)
break
- self.meta_interp(portal, [10, 10], inline=True)
+ def main(c, i, set_param):
+ if set_param:
+ driver.set_param('function_threshold', 0)
+ portal(c, i)
+
+ self.meta_interp(main, [10, 10, False], inline=True)
self.check_tree_loop_count(1)
self.check_loop_count(0)
+ # XXX fix
+ #self.meta_interp(main, [3, 10, True], inline=True)
+ #self.check_tree_loop_count(1)
class TestLLtype(RecursiveTests, LLJitMixin):
pass
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit