[pypy-svn] r77999 - pypy/branch/leak-finder/pypy/translator/c/test

arigo at codespeak.net arigo at codespeak.net
Fri Oct 15 17:35:04 CEST 2010


Author: arigo
Date: Fri Oct 15 17:35:02 2010
New Revision: 77999

Modified:
   pypy/branch/leak-finder/pypy/translator/c/test/test_genc.py
Log:
Fix test.


Modified: pypy/branch/leak-finder/pypy/translator/c/test/test_genc.py
==============================================================================
--- pypy/branch/leak-finder/pypy/translator/c/test/test_genc.py	(original)
+++ pypy/branch/leak-finder/pypy/translator/c/test/test_genc.py	Fri Oct 15 17:35:02 2010
@@ -426,6 +426,7 @@
     if py.test.config.option.view:
         t.view()
     assert ' BarStruct ' in t.driver.cbuilder.c_source_filename.read()
+    free(foo, flavor="raw")
 
 def test_recursive_llhelper():
     from pypy.rpython.annlowlevel import llhelper
@@ -473,7 +474,7 @@
         return f(s)
     a_f = A(f, "f")
     a_g = A(g, "g")
-    t = lltype.malloc(STRUCT, flavor="raw")
+    t = lltype.malloc(STRUCT, flavor="raw", immortal=True)
     t.bar = llhelper(FTPTR, a_f.make_func())
     fn = compile(chooser, [bool])
     assert fn(True)



More information about the Pypy-commit mailing list