[pypy-svn] r71668 - pypy/branch/jit-sandbox/pypy/translator/sandbox/test
fijal at codespeak.net
fijal at codespeak.net
Tue Mar 2 21:58:33 CET 2010
Author: fijal
Date: Tue Mar 2 21:58:32 2010
New Revision: 71668
Modified:
pypy/branch/jit-sandbox/pypy/translator/sandbox/test/test_sandbox.py
Log:
Apparently this test should pass. malloc_varsize_marknsweep is called and
returns non-zero
Modified: pypy/branch/jit-sandbox/pypy/translator/sandbox/test/test_sandbox.py
==============================================================================
--- pypy/branch/jit-sandbox/pypy/translator/sandbox/test/test_sandbox.py (original)
+++ pypy/branch/jit-sandbox/pypy/translator/sandbox/test/test_sandbox.py Tue Mar 2 21:58:32 2010
@@ -134,10 +134,13 @@
def test_hybrid_gc():
def entry_point(argv):
- return int(len("x" * int(argv[0])) < 350)
+ l = []
+ for i in range(int(argv[1])):
+ l.append("x" * int(argv[2]))
+ return int(len(l) > 1000)
exe = compile(entry_point, gc='hybrid')
- pipe = subprocess.Popen([exe, '1000000'], stdout=subprocess.PIPE,
+ pipe = subprocess.Popen([exe, '10', '10000'], stdout=subprocess.PIPE,
stdin=subprocess.PIPE)
g = pipe.stdin
f = pipe.stdout
More information about the Pypy-commit
mailing list