[pypy-commit] pypy jit-targets: fix test
hakanardo
noreply at buildbot.pypy.org
Tue Nov 8 10:26:59 CET 2011
Author: Hakan Ardo <hakan at debian.org>
Branch: jit-targets
Changeset: r48900:01cb9893b566
Date: 2011-11-07 18:28 +0100
http://bitbucket.org/pypy/pypy/changeset/01cb9893b566/
Log: fix test
diff --git a/pypy/jit/metainterp/compile.py b/pypy/jit/metainterp/compile.py
--- a/pypy/jit/metainterp/compile.py
+++ b/pypy/jit/metainterp/compile.py
@@ -89,7 +89,8 @@
assert descr.exported_state is None
if not we_are_translated():
op._descr_wref = weakref.ref(op._descr)
- op._descr = None # clear reference, mostly for tests
+ # xxx why do we need to clear op._descr??
+ #op._descr = None # clear reference, mostly for tests
# record this looptoken on the QuasiImmut used in the code
if loop.quasi_immutable_deps is not None:
for qmut in loop.quasi_immutable_deps:
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
@@ -1760,7 +1760,7 @@
array=array)
res = res.binop(x)
res.val += array[idx] + array[1]
- if y < 7:
+ if y < 10:
idx = 2
y -= 1
return res
@@ -1772,10 +1772,10 @@
assert a1.val == a2.val
assert b1.val == b2.val
return a1.val + b1.val
- res = self.meta_interp(g, [6, 14])
- assert res == g(6, 14)
+ res = self.meta_interp(g, [6, 20])
+ assert res == g(6, 20)
self.check_loop_count(9)
- self.check_resops(getarrayitem_gc=8)
+ self.check_resops(getarrayitem_gc=10)
def test_multiple_specialied_versions_bridge(self):
myjitdriver = JitDriver(greens = [], reds = ['y', 'x', 'z', 'res'])
More information about the pypy-commit
mailing list