Author: Armin Rigo <ar...@tunes.org> Branch: Changeset: r2278:fd7a1817301d Date: 2015-09-27 13:10 +0200 http://bitbucket.org/cffi/cffi/changeset/fd7a1817301d/
Log: The symbol "myprintf" seems to conflict on some machines. Use a different name in this test. diff --git a/testing/cffi0/test_verify.py b/testing/cffi0/test_verify.py --- a/testing/cffi0/test_verify.py +++ b/testing/cffi0/test_verify.py @@ -1635,11 +1635,11 @@ def test_FILE_stored_explicitly(): ffi = FFI() - ffi.cdef("int myprintf(const char *, int); FILE *myfile;") + ffi.cdef("int myprintf11(const char *, int); FILE *myfile;") lib = ffi.verify(""" #include <stdio.h> FILE *myfile; - int myprintf(const char *out, int value) { + int myprintf11(const char *out, int value) { return fprintf(myfile, out, value); } """) @@ -1649,7 +1649,7 @@ lib.myfile = ffi.cast("FILE *", fw1) # fw1.write(b"X") - r = lib.myprintf(b"hello, %d!\n", ffi.cast("int", 42)) + r = lib.myprintf11(b"hello, %d!\n", ffi.cast("int", 42)) fw1.close() assert r == len("hello, 42!\n") # _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit