[pypy-svn] r54718 - pypy/branch/hybrid-io/pypy/translator/c/test
fijal at codespeak.net
fijal at codespeak.net
Wed May 14 00:49:29 CEST 2008
Author: fijal
Date: Wed May 14 00:49:28 2008
New Revision: 54718
Modified:
pypy/branch/hybrid-io/pypy/translator/c/test/test_newgc.py
Log:
Add a segfaulting test
Modified: pypy/branch/hybrid-io/pypy/translator/c/test/test_newgc.py
==============================================================================
--- pypy/branch/hybrid-io/pypy/translator/c/test/test_newgc.py (original)
+++ pypy/branch/hybrid-io/pypy/translator/c/test/test_newgc.py Wed May 14 00:49:28 2008
@@ -998,12 +998,15 @@
assert res == "aabcbdddd"
def test_string_builder_over_allocation(self):
+ import gc
def fn():
- s = StringBuilder(1024)
+ s = StringBuilder(4)
s.append("abcd")
s.append("defg")
s.append("rty")
s.append_multiple_char('y', 1000)
+ gc.collect()
+ s.append_multiple_char('y', 1000)
return s.build()
c_fn = self.getcompiled(fn)
res = c_fn()
@@ -1018,5 +1021,8 @@
should_be_moving = True
GC_CANNOT_MALLOC_NONMOVABLE = False
+ def test_string_builder_over_allocation(self):
+ py.test.skip("Segfaulting")
+
def test_gc_set_max_heap_size(self):
py.test.skip("not implemented")
More information about the Pypy-commit
mailing list