[pypy-commit] pypy default: Skip this test if the address happens not to fit in 32 bits
arigo
noreply at buildbot.pypy.org
Fri Sep 18 16:52:55 CEST 2015
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r79688:bc98bea0ea47
Date: 2015-09-18 16:52 +0200
http://bitbucket.org/pypy/pypy/changeset/bc98bea0ea47/
Log: Skip this test if the address happens not to fit in 32 bits
diff --git a/rpython/jit/backend/x86/test/test_regloc.py b/rpython/jit/backend/x86/test/test_regloc.py
--- a/rpython/jit/backend/x86/test/test_regloc.py
+++ b/rpython/jit/backend/x86/test/test_regloc.py
@@ -1,5 +1,5 @@
import struct, sys
-from rpython.jit.backend.x86.rx86 import R
+from rpython.jit.backend.x86.rx86 import R, fits_in_32bits
from rpython.jit.backend.x86.regloc import *
from rpython.jit.backend.x86.test.test_rx86 import CodeBuilder32, CodeBuilder64, assert_encodes_as
from rpython.jit.backend.x86.assembler import heap
@@ -112,6 +112,9 @@
def test_follow_jump_instructions_32():
buf = lltype.malloc(rffi.CCHARP.TO, 80, flavor='raw')
raw = rffi.cast(lltype.Signed, buf)
+ if not fits_in_32bits(raw):
+ lltype.free(buf, flavor='raw')
+ py.test.skip("not testable")
mc = Fake32CodeBlockWrapper(); mc.WORD = 4; mc.relocations = []
mc.RET()
mc.copy_to_raw_memory(raw)
More information about the pypy-commit
mailing list