Author: Maciej Fijalkowski <[email protected]>
Branch: jitframe-on-heap
Changeset: r61850:b744e78f638f
Date: 2013-02-27 16:02 +0200
http://bitbucket.org/pypy/pypy/changeset/b744e78f638f/
Log: improve tests
diff --git a/rpython/jit/backend/llsupport/test/test_gc_integration.py
b/rpython/jit/backend/llsupport/test/test_gc_integration.py
--- a/rpython/jit/backend/llsupport/test/test_gc_integration.py
+++ b/rpython/jit/backend/llsupport/test/test_gc_integration.py
@@ -686,6 +686,8 @@
def f(frame, arg, x):
assert not arg
assert frame.jf_gcmap[0] & 31 == 0
+ assert bin(frame.jf_gcmap[0]).count('1') == 3 # p1, p2, p3, but
+ # not in registers
frame.jf_descr = frame.jf_force_descr # make guard_not_forced fail
assert x == 1
return lltype.nullptr(llmemory.GCREF.TO)
@@ -728,6 +730,7 @@
def f(frame, arg, x):
assert not arg
assert frame.jf_gcmap[0] & 31 == 0
+ assert bin(frame.jf_gcmap[0]).count('1') == 3 # p1, p2, p3
frame.jf_descr = frame.jf_force_descr # make guard_not_forced fail
assert x == 1
return lltype.nullptr(llmemory.GCREF.TO)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit