Author: Maciej Fijalkowski <[email protected]>
Branch: jitframe-on-heap
Changeset: r60555:7d06cb9306a1
Date: 2013-01-27 22:14 +0100
http://bitbucket.org/pypy/pypy/changeset/7d06cb9306a1/
Log: ll2ctypes drives me nuts
diff --git a/rpython/jit/backend/test/runner_test.py
b/rpython/jit/backend/test/runner_test.py
--- a/rpython/jit/backend/test/runner_test.py
+++ b/rpython/jit/backend/test/runner_test.py
@@ -2062,7 +2062,7 @@
def test_cond_call_gc_wb(self):
def func_void(a):
- record.append(a)
+ record.append(rffi.cast(lltype.Signed, a))
record = []
#
S = lltype.GcStruct('S', ('tid', lltype.Signed))
@@ -2092,13 +2092,13 @@
[BoxPtr(sgcref), ConstPtr(tgcref)],
'void', descr=WriteBarrierDescr())
if cond:
- assert record == [s]
+ assert record == [rffi.cast(lltype.Signed, sgcref)]
else:
assert record == []
def test_cond_call_gc_wb_array(self):
def func_void(a):
- record.append(a)
+ record.append(rffi.cast(lltype.Signed, a))
record = []
#
S = lltype.GcStruct('S', ('tid', lltype.Signed))
@@ -2127,13 +2127,13 @@
[BoxPtr(sgcref), ConstInt(123), BoxPtr(sgcref)],
'void', descr=WriteBarrierDescr())
if cond:
- assert record == [s]
+ assert record == [rffi.cast(lltype.Signed, sgcref)]
else:
assert record == []
def test_cond_call_gc_wb_array_card_marking_fast_path(self):
def func_void(a):
- record.append(a)
+ record.append(rffi.cast(lltype.Signed, a))
if cond == 1: # the write barrier sets the flag
s.data.tid |= 32768
record = []
@@ -2192,7 +2192,7 @@
[BoxPtr(sgcref), box_index, BoxPtr(sgcref)],
'void', descr=WriteBarrierDescr())
if cond in [0, 1]:
- assert record == [s.data]
+ assert record == [rffi.cast(lltype.Signed, s.data)]
else:
assert record == []
if cond in [1, 2]:
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit