[pypy-commit] cffi default: A failing test (thanks Tobu on irc)
arigo
noreply at buildbot.pypy.org
Tue Sep 4 12:09:05 CEST 2012
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r913:d7f9cddc707f
Date: 2012-09-04 12:05 +0200
http://bitbucket.org/cffi/cffi/changeset/d7f9cddc707f/
Log: A failing test (thanks Tobu on irc)
diff --git a/testing/test_verify.py b/testing/test_verify.py
--- a/testing/test_verify.py
+++ b/testing/test_verify.py
@@ -1004,3 +1004,15 @@
ffi = FFI()
ffi.cdef("union foo_u { char x; long *z; };")
ffi.verify("union foo_u { char x; int y; long *z; };")
+
+def test_ffi_struct_packed():
+ if sys.platform == 'win32':
+ py.test.skip("needs a GCC extension")
+ ffi = FFI()
+ ffi.cdef("struct foo_s { int b; ...; };")
+ ffi.verify("""
+ struct foo_s {
+ char a;
+ int b;
+ } __attribute__((packed));
+ """)
More information about the pypy-commit
mailing list