summaryrefslogtreecommitdiff
path: root/testing/cffi1/test_dlopen.py
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2015-05-16 11:24:16 +0200
committerArmin Rigo <arigo@tunes.org>2015-05-16 11:24:16 +0200
commit8d1c9bf6507a7cd2a77db2ba62d79c917eb50f62 (patch)
tree7fa4f242c0d5756fa06148b3beb88b7547f60e82 /testing/cffi1/test_dlopen.py
parentddd2436428ecbb817c56c3e3425bc187b5f2def6 (diff)
downloadcffi-8d1c9bf6507a7cd2a77db2ba62d79c917eb50f62.tar.gz
Add a test
Diffstat (limited to 'testing/cffi1/test_dlopen.py')
-rw-r--r--testing/cffi1/test_dlopen.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/testing/cffi1/test_dlopen.py b/testing/cffi1/test_dlopen.py
index 1078029..4663dd7 100644
--- a/testing/cffi1/test_dlopen.py
+++ b/testing/cffi1/test_dlopen.py
@@ -145,3 +145,13 @@ ffi = _cffi_backend.FFI(b'test_struct_included',
_includes = (_ffi0,),
)
"""
+
+def test_no_cross_include():
+ baseffi = FFI()
+ baseffi.set_source('test_no_cross_include_base', "..source..")
+ #
+ ffi = FFI()
+ ffi.include(baseffi)
+ target = udir.join('test_no_cross_include.py')
+ py.test.raises(VerificationError, make_py_source,
+ ffi, 'test_no_cross_include', str(target))