Author: Armin Rigo <[email protected]>
Branch: gc_no_cleanup_nursery
Changeset: r73663:eb615ab297d1
Date: 2014-09-23 12:13 +0200
http://bitbucket.org/pypy/pypy/changeset/eb615ab297d1/
Log: Add a few commented-out lines about a case that crashes but that
isn't too important
diff --git a/rpython/translator/c/test/test_newgc.py
b/rpython/translator/c/test/test_newgc.py
--- a/rpython/translator/c/test/test_newgc.py
+++ b/rpython/translator/c/test/test_newgc.py
@@ -1200,7 +1200,9 @@
lltype.Struct("s1", ("x", lltype.Signed))),
('y', lltype.Signed))
A = lltype.GcArray(lltype.Signed)
-
+ B = lltype.GcStruct("b", ('x', lltype.Signed),
+ ('y', lltype.Array(lltype.Signed)))
+
def fn():
s = lltype.malloc(S, zero=True)
assert s.x == 0
@@ -1208,6 +1210,11 @@
assert s2.parent.x == 0
a = lltype.malloc(A, 3, zero=True)
assert a[2] == 0
+ # XXX not supported right now in gctransform/framework.py:
+ #b = lltype.malloc(B, 3, zero=True)
+ #assert len(b.y) == 3
+ #assert b.x == 0
+ #assert b.y[0] == b.y[1] == b.y[2] == 0
return 0
return fn
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit