[pypy-commit] pypy exc-later: update tests

rlamy noreply at buildbot.pypy.org
Thu Mar 19 17:04:56 CET 2015


Author: Ronan Lamy <ronan.lamy at gmail.com>
Branch: exc-later
Changeset: r76475:68638917e42b
Date: 2015-03-19 01:01 +0000
http://bitbucket.org/pypy/pypy/changeset/68638917e42b/

Log:	update tests

diff --git a/rpython/jit/codewriter/test/test_flatten.py b/rpython/jit/codewriter/test/test_flatten.py
--- a/rpython/jit/codewriter/test/test_flatten.py
+++ b/rpython/jit/codewriter/test/test_flatten.py
@@ -485,11 +485,11 @@
             ---
             L1:
             goto_if_exception_mismatch $<* struct object_vtable>, L2
-            int_return $42
+            int_return $-42
             ---
             L2:
             goto_if_exception_mismatch $<* struct object_vtable>, L3
-            int_return $-42
+            int_return $42
             ---
             L3:
             reraise
@@ -503,9 +503,8 @@
                 return ovfcheck(i % j)
             except OverflowError:
                 return 42
-        # XXX so far, this really produces a int_mod_ovf_zer...
         self.encoding_test(f, [7, 2], """
-            residual_call_ir_i $<* fn int_mod_ovf_zer>, I[%i0, %i1], R[], <Descr> -> %i2
+            residual_call_ir_i $<* fn int_mod_ovf>, I[%i0, %i1], R[], <Descr> -> %i2
             -live-
             catch_exception L1
             int_return %i2


More information about the pypy-commit mailing list