[pypy-commit] cffi default: The test was bogus (did not compile on recent gcc's).
arigo
noreply at buildbot.pypy.org
Sat Sep 15 10:45:56 CEST 2012
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r936:22a470d94ca0
Date: 2012-09-15 10:43 +0200
http://bitbucket.org/cffi/cffi/changeset/22a470d94ca0/
Log: The test was bogus (did not compile on recent gcc's). Replace it
with another test, which passes.
diff --git a/testing/backend_tests.py b/testing/backend_tests.py
--- a/testing/backend_tests.py
+++ b/testing/backend_tests.py
@@ -1427,14 +1427,14 @@
def test_ordering_bug2(self):
ffi = FFI(backend=self.Backend())
ffi.cdef("""
+ struct bar_s;
+
struct foo_s {
- struct bar_s (*p)[3];
+ void (*foo)(struct bar_s[]);
};
+
struct bar_s {
struct foo_s foo;
};
""")
q = ffi.new("struct foo_s *")
- bar = ffi.new("struct bar_s *")
- q.p[1] = bar
- assert q.p[1].foo.p[1] == ffi.NULL
More information about the pypy-commit
mailing list