[pypy-commit] pypy default: Skip this line of the test on 32-bit, with an explanation about why.

arigo noreply at buildbot.pypy.org
Fri May 2 10:32:34 CEST 2014


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r71194:0e00b9b987eb
Date: 2014-05-02 10:32 +0200
http://bitbucket.org/pypy/pypy/changeset/0e00b9b987eb/

Log:	Skip this line of the test on 32-bit, with an explanation about why.

diff --git a/pypy/module/pypyjit/test_pypy_c/test_cprofile.py b/pypy/module/pypyjit/test_pypy_c/test_cprofile.py
--- a/pypy/module/pypyjit/test_pypy_c/test_cprofile.py
+++ b/pypy/module/pypyjit/test_pypy_c/test_cprofile.py
@@ -1,4 +1,4 @@
-import py
+import py, sys
 from pypy.module.pypyjit.test_pypy_c.test_00_model import BaseTestPyPyC
 
 class TestCProfile(BaseTestPyPyC):
@@ -26,6 +26,10 @@
         for method in ['append', 'pop']:
             loop, = log.loops_by_id(method)
             print loop.ops_by_id(method)
-            assert ' call(' not in repr(loop.ops_by_id(method))
+            # on 32-bit, there is f1=read_timestamp(); ...;
+            # f2=read_timestamp(); f3=call(llong_sub,f1,f2)
+            # which should turn into a single PADDQ/PSUBQ
+            if sys.maxint != 2147483647:
+                assert ' call(' not in repr(loop.ops_by_id(method))
             assert ' call_may_force(' not in repr(loop.ops_by_id(method))
             assert ' cond_call(' in repr(loop.ops_by_id(method))


More information about the pypy-commit mailing list