[pypy-commit] pypy small-unroll-improvements: this test is brittle, it fails when run with all others but passes in
cfbolz
noreply at buildbot.pypy.org
Fri Apr 4 13:10:54 CEST 2014
Author: Carl Friedrich Bolz <cfbolz at gmx.de>
Branch: small-unroll-improvements
Changeset: r70435:282c41e394ed
Date: 2014-04-04 13:10 +0200
http://bitbucket.org/pypy/pypy/changeset/282c41e394ed/
Log: this test is brittle, it fails when run with all others but passes
in isolation. this is fixed by using constant ints
diff --git a/rpython/jit/metainterp/optimizeopt/test/test_virtualstate.py b/rpython/jit/metainterp/optimizeopt/test/test_virtualstate.py
--- a/rpython/jit/metainterp/optimizeopt/test/test_virtualstate.py
+++ b/rpython/jit/metainterp/optimizeopt/test/test_virtualstate.py
@@ -627,26 +627,26 @@
def test_constant(self):
loops = """
- [p0]
- p1 = same_as(ConstPtr(myptr))
- jump(p1)
+ [i0]
+ i1 = same_as(1)
+ jump(i1)
""", """
- [p0]
- p1 = same_as(ConstPtr(myptr2))
- jump(p1)
+ [i0]
+ i1 = same_as(2)
+ jump(i1)
""", """
- [p0]
- jump(p0)
+ [i0]
+ jump(i0)
"""
expected = """
- [p0]
+ [i0]
jump()
"""
self.optimize_bridge(loops, loops[0], expected, 'Loop0')
self.optimize_bridge(loops, loops[1], expected, 'Loop1')
expected = """
- [p0]
- jump(p0)
+ [i0]
+ jump(i0)
"""
self.optimize_bridge(loops, loops[2], expected, 'Loop2')
More information about the pypy-commit
mailing list