[pypy-commit] pypy default: a failing test.

alex_gaynor noreply at buildbot.pypy.org
Sat Sep 24 19:18:10 CEST 2011


Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: 
Changeset: r47578:4d3c8a23aae1
Date: 2011-09-24 13:17 -0400
http://bitbucket.org/pypy/pypy/changeset/4d3c8a23aae1/

Log:	a failing test.

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
@@ -575,4 +575,18 @@
                 n -= 1
             return result
         res = self.meta_interp(main, [9])
-        assert res == main(9)
\ No newline at end of file
+        assert res == main(9)
+
+    def test_virtual_copystringcontent2(self):
+        jitdriver = JitDriver(reds=['n', 'result'], greens=[])
+        def main(n):
+            result = 0
+            while n >= 0:
+                jitdriver.jit_merge_point(n=n, result=result)
+                b = StringBuilder(6)
+                b.append("Hello!")
+                result += ord((b.build() + "xyz")[0])
+                n -= 1
+            return result
+        res = self.meta_interp(main, [9])
+        assert res == main(9)


More information about the pypy-commit mailing list