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