[pypy-svn] r14199 - pypy/dist/pypy/translator/llvm2/test
ericvrp at codespeak.net
ericvrp at codespeak.net
Mon Jul 4 12:17:29 CEST 2005
Author: ericvrp
Date: Mon Jul 4 12:17:28 2005
New Revision: 14199
Modified:
pypy/dist/pypy/translator/llvm2/test/test_genllvm.py
Log:
improved gc test
Modified: pypy/dist/pypy/translator/llvm2/test/test_genllvm.py
==============================================================================
--- pypy/dist/pypy/translator/llvm2/test/test_genllvm.py (original)
+++ pypy/dist/pypy/translator/llvm2/test/test_genllvm.py Mon Jul 4 12:17:28 2005
@@ -50,13 +50,13 @@
i += 1
return x
mod,f = compile_module_function(tuple_getitem, [int])
+ assert f(10000) == 49995000
get_heap_size = getattr(mod, "GC_get_heap_size_wrapper")
heap_size_start = get_heap_size()
for i in range(0,10):
- f(10000)
- heap_size_used = get_heap_size() - heap_size_start
- print 'heap_size_used=%d' % heap_size_used
- assert heap_size_used < 100000
+ assert f(10000) == 49995000
+ heap_size_inc = get_heap_size() - heap_size_start
+ assert heap_size_inc < 100000
def test_return1():
def simple1():
More information about the Pypy-commit
mailing list