[pypy-commit] pypy ffi-backend: First step of testing in test_pypy_c.

arigo noreply at buildbot.pypy.org
Wed Aug 8 13:01:33 CEST 2012


Author: Armin Rigo <arigo at tunes.org>
Branch: ffi-backend
Changeset: r56652:dfcbf114b953
Date: 2012-08-08 10:59 +0000
http://bitbucket.org/pypy/pypy/changeset/dfcbf114b953/

Log:	First step of testing in test_pypy_c.

diff --git a/pypy/module/pypyjit/test_pypy_c/test__ffi.py b/pypy/module/pypyjit/test_pypy_c/test__ffi.py
--- a/pypy/module/pypyjit/test_pypy_c/test__ffi.py
+++ b/pypy/module/pypyjit/test_pypy_c/test__ffi.py
@@ -201,7 +201,11 @@
         loop, = log.loops_by_filename(self.filepath)
         if 'ConstClass(pow)' in repr(loop):   # e.g. OS/X
             pow_addr = 'ConstClass(pow)'
-        py.test.xfail()     # XXX currently too much code, fixme
         assert loop.match_by_id('cfficall', """
             ...
-        """ % pow_addr)
+            f1 = call_release_gil(..., descr=<Callf 8 ff EF=6 OS=62>)
+            ...
+        """)
+        # so far just check that call_release_gil() is produced.
+        # later, also check that the arguments to call_release_gil()
+        # are constants, and that the numerous raw_mallocs are removed


More information about the pypy-commit mailing list