[pypy-commit] pypy guard-compatible: change the test slightly to show the real problem: calls aren't getting removed in bridges

cfbolz pypy.commits at gmail.com
Wed Mar 21 08:02:54 EDT 2018


Author: Carl Friedrich Bolz-Tereick <cfbolz at gmx.de>
Branch: guard-compatible
Changeset: r94053:d8319beb1fe4
Date: 2018-03-21 13:01 +0100
http://bitbucket.org/pypy/pypy/changeset/d8319beb1fe4/

Log:	change the test slightly to show the real problem: calls aren't
	getting removed in bridges

diff --git a/rpython/jit/metainterp/test/test_compatible.py b/rpython/jit/metainterp/test/test_compatible.py
--- a/rpython/jit/metainterp/test/test_compatible.py
+++ b/rpython/jit/metainterp/test/test_compatible.py
@@ -531,11 +531,11 @@
         main(False)
 
         x = self.meta_interp(main, [True])
-        assert x < 30
 
-        x = self.meta_interp(main, [False])
-        assert x < 30
+        x += self.meta_interp(main, [False])
         self.check_trace_count(7)
+        self.check_resops(call_i=0)
+        assert x < 60
 
     def test_quasi_immutable_merge_short_preamble(self):
         from rpython.rlib.objectmodel import we_are_translated


More information about the pypy-commit mailing list