[pypy-commit] pypy string-promote-2: make the test check something

fijal noreply at buildbot.pypy.org
Tue Oct 11 12:12:16 CEST 2011


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: string-promote-2
Changeset: r47934:460767032152
Date: 2011-10-11 12:10 +0200
http://bitbucket.org/pypy/pypy/changeset/460767032152/

Log:	make the test check something

diff --git a/pypy/jit/metainterp/test/test_string.py b/pypy/jit/metainterp/test/test_string.py
--- a/pypy/jit/metainterp/test/test_string.py
+++ b/pypy/jit/metainterp/test/test_string.py
@@ -512,13 +512,14 @@
         driver = JitDriver(greens = [], reds = ['n'])
         
         def f(n):
-            while n < 12:
+            while n < 21:
                 driver.jit_merge_point(n=n)
                 promote_string(str(n % 3))
                 n += 1
             return 0
 
         self.meta_interp(f, [0])
+        self.check_loops(call=3 + 1) # one for int2str
 
 #class TestOOtype(StringTests, OOJitMixin):
 #    CALL = "oosend"


More information about the pypy-commit mailing list