[pypy-svn] r54746 - pypy/dist/pypy/rpython/lltypesystem/test
afa at codespeak.net
afa at codespeak.net
Thu May 15 11:19:20 CEST 2008
Author: afa
Date: Thu May 15 11:19:19 2008
New Revision: 54746
Modified:
pypy/dist/pypy/rpython/lltypesystem/test/test_rffi.py
Log:
This test crashes on some configurations.
Explain why it is broken, and skip it.
I'm not sure what this function tries to test.
If it's only about a string allocated by the external function,
then we could just leak this pointer.
Modified: pypy/dist/pypy/rpython/lltypesystem/test/test_rffi.py
==============================================================================
--- pypy/dist/pypy/rpython/lltypesystem/test/test_rffi.py (original)
+++ pypy/dist/pypy/rpython/lltypesystem/test/test_rffi.py Thu May 15 11:19:19 2008
@@ -69,6 +69,12 @@
assert xf() == 3
def test_string_reverse(self):
+ # XXX This test crashes with a debug build
+ # (when python is built WITH_PYMALLOC and PYMALLOC_DEBUG):
+ # lltype.free calls OP_RAW_FREE() == PyObject_Free(),
+ # but the buffer comes from a malloc()
+ if sys.platform == 'win32' and 'python_d' in sys.executable:
+ py.test.skip("Crash with a debug build")
c_source = py.code.Source("""
#include <string.h>
More information about the Pypy-commit
mailing list