[pypy-svn] r46192 - pypy/branch/pypy-more-rtti-inprogress/rpython/lltypesystem/test
fijal at codespeak.net
fijal at codespeak.net
Thu Aug 30 14:36:55 CEST 2007
Author: fijal
Date: Thu Aug 30 14:36:51 2007
New Revision: 46192
Modified:
pypy/branch/pypy-more-rtti-inprogress/rpython/lltypesystem/test/test_ll2ctypes.py
Log:
Add a broken test to showcase recursive struct problem (help!)
Modified: pypy/branch/pypy-more-rtti-inprogress/rpython/lltypesystem/test/test_ll2ctypes.py
==============================================================================
--- pypy/branch/pypy-more-rtti-inprogress/rpython/lltypesystem/test/test_ll2ctypes.py (original)
+++ pypy/branch/pypy-more-rtti-inprogress/rpython/lltypesystem/test/test_ll2ctypes.py Thu Aug 30 14:36:51 2007
@@ -404,3 +404,12 @@
assert s1ac.contents.x == 59
assert s.s1a.x == 59
lltype.free(s, flavor='raw')
+
+ def test_recursive_struct(self):
+ # XXX sucky way of creating those
+ py.test.skip("HELP! I don't know how to make this work")
+ SX = lltype.Struct('y')
+ S1 = lltype.Struct('S1', ('x', lltype.Ptr(SX)))
+ S1._flds['x'] = lltype.Ptr(S1)
+ s = lltype.malloc(S1, flavor='raw')
+ sc = lltype2ctypes(s)
More information about the Pypy-commit
mailing list