diff options
| author | Armin Rigo <arigo@tunes.org> | 2014-11-28 10:53:44 +0100 |
|---|---|---|
| committer | Armin Rigo <arigo@tunes.org> | 2014-11-28 10:53:44 +0100 |
| commit | 3b0aabb50ee60fb3da8644e4adbb5f61df6b1f14 (patch) | |
| tree | 98d4d94b3b8a9bb75b031e1ea3d434aaedeabdf1 /testing/test_verify.py | |
| parent | 167f3c5c1ee50b00853b309a2df9c1c2c562b8b5 (diff) | |
| download | cffi-HERE-in-paths.tar.gz | |
Allow specifying $HERE in the paths given to verify()HERE-in-paths
Diffstat (limited to 'testing/test_verify.py')
| -rw-r--r-- | testing/test_verify.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/testing/test_verify.py b/testing/test_verify.py index da0da4c..c68b72e 100644 --- a/testing/test_verify.py +++ b/testing/test_verify.py @@ -2037,3 +2037,16 @@ def test_getlasterror_working_even_with_pypys_jit(): n = (1 << 29) + i lib.SetLastError(n) assert ffi.getwinerror()[0] == n + +def test_verify_include_dir(): + curdir = os.getcwd() + try: + os.chdir('..') + ffi = FFI() + ffi.cdef("int v_include_dir(void);") + lib = ffi.verify('#include "verify_include_dir.h"', + include_dirs=['$HERE/snippets/'], + sources=['$HERE/snippets/verify_include_dir.c']) + assert lib.v_include_dir() == 42 + finally: + os.chdir(curdir) |
