[pypy-commit] pypy default: Fix test_optimizeopt.test_setarrayitem_followed_by_arraycopy()

arigo noreply at buildbot.pypy.org
Sat Oct 1 12:44:54 CEST 2011


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r47746:d021f859d101
Date: 2011-10-01 12:44 +0200
http://bitbucket.org/pypy/pypy/changeset/d021f859d101/

Log:	Fix test_optimizeopt.test_setarrayitem_followed_by_arraycopy() by
	putting manually the correct readonly_descrs_arrays and
	write_descrs_arrays lists.

diff --git a/pypy/jit/metainterp/optimizeopt/test/test_util.py b/pypy/jit/metainterp/optimizeopt/test/test_util.py
--- a/pypy/jit/metainterp/optimizeopt/test/test_util.py
+++ b/pypy/jit/metainterp/optimizeopt/test/test_util.py
@@ -182,7 +182,8 @@
                             EffectInfo.EF_FORCES_VIRTUAL_OR_VIRTUALIZABLE,
                             can_invalidate=True))
     arraycopydescr = cpu.calldescrof(FUNC, FUNC.ARGS, FUNC.RESULT,
-             EffectInfo([], [], [], [], oopspecindex=EffectInfo.OS_ARRAYCOPY))
+             EffectInfo([], [arraydescr], [], [arraydescr],
+                        oopspecindex=EffectInfo.OS_ARRAYCOPY))
 
     for _name, _os in [
         ('strconcatdescr',               'OS_STR_CONCAT'),


More information about the pypy-commit mailing list