diff options
author | Armin Rigo <arigo@tunes.org> | 2016-01-16 17:25:42 +0100 |
---|---|---|
committer | Armin Rigo <arigo@tunes.org> | 2016-01-16 17:25:42 +0100 |
commit | 20c632e661c0e6cf9a46eacf4f3d6cce7a367c4a (patch) | |
tree | a31014c18648ee1e8418b78c7d94afdfc0fb0f99 /testing | |
parent | 6f821d64c3de69b68ce43e026fd222ce21efea9c (diff) | |
download | cffi-20c632e661c0e6cf9a46eacf4f3d6cce7a367c4a.tar.gz |
fix when running this test in the same process as ../cffi0/test_verify.py (found on os/x, but I don't know why it doesn't also fail on linux)
Diffstat (limited to 'testing')
-rw-r--r-- | testing/cffi1/test_verify1.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/testing/cffi1/test_verify1.py b/testing/cffi1/test_verify1.py index cce3888..5f7c184 100644 --- a/testing/cffi1/test_verify1.py +++ b/testing/cffi1/test_verify1.py @@ -2091,20 +2091,20 @@ def test_verify_dlopen_flags(): old = sys.getdlopenflags() try: ffi1 = FFI() - ffi1.cdef("int foo_verify_dlopen_flags;") + ffi1.cdef("int foo_verify_dlopen_flags_1;") sys.setdlopenflags(ffi1.RTLD_GLOBAL | ffi1.RTLD_NOW) - lib1 = ffi1.verify("int foo_verify_dlopen_flags;") + lib1 = ffi1.verify("int foo_verify_dlopen_flags_1;") finally: sys.setdlopenflags(old) ffi2 = FFI() ffi2.cdef("int *getptr(void);") lib2 = ffi2.verify(""" - extern int foo_verify_dlopen_flags; - static int *getptr(void) { return &foo_verify_dlopen_flags; } + extern int foo_verify_dlopen_flags_1; + static int *getptr(void) { return &foo_verify_dlopen_flags_1; } """) p = lib2.getptr() - assert ffi1.addressof(lib1, 'foo_verify_dlopen_flags') == p + assert ffi1.addressof(lib1, 'foo_verify_dlopen_flags_1') == p def test_consider_not_implemented_function_type(): ffi = FFI() |