Author: Armin Rigo <ar...@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)) _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit