Author: Maciej Fijalkowski <[email protected]>
Branch: jitframe-on-heap
Changeset: r61145:839be53e2b6c
Date: 2013-02-12 23:08 +0200
http://bitbucket.org/pypy/pypy/changeset/839be53e2b6c/
Log: test_gc for 32bit
diff --git a/rpython/jit/backend/llsupport/test/test_gc.py
b/rpython/jit/backend/llsupport/test/test_gc.py
--- a/rpython/jit/backend/llsupport/test/test_gc.py
+++ b/rpython/jit/backend/llsupport/test/test_gc.py
@@ -299,9 +299,12 @@
assert all_addrs[6] == indexof(3)
assert all_addrs[7] == indexof(5)
assert all_addrs[8] == indexof(7)
- assert all_addrs[9] == indexof(63)
- # XXX 32bit
- assert all_addrs[10] == indexof(65)
+ if sys.maxint == 2**31 - 1:
+ assert all_addrs[9] == indexof(31)
+ assert all_addrs[10] == indexof(33)
+ else:
+ assert all_addrs[9] == indexof(63)
+ assert all_addrs[10] == indexof(65)
assert len(all_addrs) == 4 + 6 + 4
# 4 static fields, 4 addresses from gcmap, 2 from gcpattern
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit