[pypy-svn] r60510 - pypy/trunk/pypy/translator/c/test
fijal at codespeak.net
fijal at codespeak.net
Tue Dec 16 14:29:28 CET 2008
Author: fijal
Date: Tue Dec 16 14:29:27 2008
New Revision: 60510
Modified:
pypy/trunk/pypy/translator/c/test/test_lltyped.py
Log:
This test passes if it's written sanely enough
Modified: pypy/trunk/pypy/translator/c/test/test_lltyped.py
==============================================================================
--- pypy/trunk/pypy/translator/c/test/test_lltyped.py (original)
+++ pypy/trunk/pypy/translator/c/test/test_lltyped.py Tue Dec 16 14:29:27 2008
@@ -630,15 +630,15 @@
fn()
def test_prebuilt_nolength_char_array(self):
- py.test.skip("fails on the trunk too")
for lastchar in ('\x00', 'X'):
A = Array(Char, hints={'nolength': True})
- a = malloc(A, 5, immortal=True)
+ a = malloc(A, 6, immortal=True)
a[0] = '8'
a[1] = '5'
a[2] = '?'
a[3] = '!'
a[4] = lastchar
+ a[5] = '\x00'
def llf():
s = ''
for i in range(5):
@@ -657,3 +657,6 @@
y = rffi.cast(TYPE, 0)
fn = self.getcompiled(llf)
fn()
+
+
+
More information about the Pypy-commit
mailing list