Author: Hakan Ardo <[email protected]>
Branch: jit-targets
Changeset: r48905:178c618d4dc3
Date: 2011-11-08 08:06 +0100
http://bitbucket.org/pypy/pypy/changeset/178c618d4dc3/

Log:    better way of checking that the retracecount is not exceeded

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
@@ -2704,7 +2704,8 @@
         res = self.meta_interp(g, [10])
         assert res == g(10)
         # 1 preamble and 6 speciealized versions of each loop
-        self.check_tree_loop_count(2*(1 + 6))
+        for loop in get_stats().loops:
+            assert 
len(loop.operations[0].getdescr().targeting_jitcell_token.target_tokens) <= 7
 
     def test_nested_retrace(self):
 
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to