[pypy-commit] pypy default: Fix this test on 64-bit: avoids that random unrelated operations
arigo
noreply at buildbot.pypy.org
Tue Sep 6 13:37:07 CEST 2011
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r47102:a41ea5a18e1c
Date: 2011-09-06 13:36 +0200
http://bitbucket.org/pypy/pypy/changeset/a41ea5a18e1c/
Log: Fix this test on 64-bit: avoids that random unrelated operations
show up here, by adding a dummy getattr previously in the loop.
diff --git a/pypy/module/pypyjit/test_pypy_c/test_instance.py b/pypy/module/pypyjit/test_pypy_c/test_instance.py
--- a/pypy/module/pypyjit/test_pypy_c/test_instance.py
+++ b/pypy/module/pypyjit/test_pypy_c/test_instance.py
@@ -142,6 +142,7 @@
i = 0
b = B(1)
while i < 100:
+ b.x
v = b.x # ID: loadattr
i += v
return i
@@ -150,8 +151,6 @@
loop, = log.loops_by_filename(self.filepath)
assert loop.match_by_id('loadattr',
'''
- guard_not_invalidated(descr=...)
- i16 = arraylen_gc(p10, descr=<GcPtrArrayDescr>)
i19 = call(ConstClass(ll_dict_lookup), _, _, _, descr=...)
guard_no_exception(descr=...)
i21 = int_and(i19, _)
More information about the pypy-commit
mailing list