[pypy-commit] pypy default: try the crashing case first

hakanardo noreply at buildbot.pypy.org
Thu Mar 1 21:45:02 CET 2012


Author: Hakan Ardo <hakan at debian.org>
Branch: 
Changeset: r53081:d174264562db
Date: 2012-03-01 18:58 +0100
http://bitbucket.org/pypy/pypy/changeset/d174264562db/

Log:	try the crashing case first

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
@@ -288,10 +288,10 @@
                 if y&4 == 0:
                     x1, x2 = x2, x1
             return res
+        res = self.meta_interp(f, [6, sys.maxint, 32, 48])
+        assert res == f(6, sys.maxint, 32, 48)
         res = self.meta_interp(f, [sys.maxint, 6, 32, 48])
         assert res == f(sys.maxint, 6, 32, 48)
-        res = self.meta_interp(f, [6, sys.maxint, 32, 48])
-        assert res == f(6, sys.maxint, 32, 48)
         
 
     def test_loop_invariant_intbox(self):


More information about the pypy-commit mailing list