summaryrefslogtreecommitdiff
path: root/Cython/Debugger
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2017-02-12 11:50:17 +0100
committerStefan Behnel <stefan_ml@behnel.de>2017-02-12 11:50:17 +0100
commitef6d1961d8488a80462c15ddaef17b300493a10c (patch)
tree5becb6f3ac50b26aed529f07c8d857d79f49f869 /Cython/Debugger
parent1c9e174dc926d5574b4db48589fcb75e0edebde9 (diff)
parent7da5f348ed9511f1c1a3ffce5b66813c3204a0d0 (diff)
downloadcython-ef6d1961d8488a80462c15ddaef17b300493a10c.tar.gz
Merge branch 'embray-cygwin-tests'
Diffstat (limited to 'Cython/Debugger')
-rw-r--r--Cython/Debugger/Tests/TestLibCython.py2
-rw-r--r--Cython/Debugger/Tests/cfuncs.h1
-rw-r--r--Cython/Debugger/Tests/codefile2
3 files changed, 4 insertions, 1 deletions
diff --git a/Cython/Debugger/Tests/TestLibCython.py b/Cython/Debugger/Tests/TestLibCython.py
index 87b537e14..b789b1062 100644
--- a/Cython/Debugger/Tests/TestLibCython.py
+++ b/Cython/Debugger/Tests/TestLibCython.py
@@ -90,6 +90,8 @@ class DebuggerTestCase(unittest.TestCase):
shutil.copy(codefile, self.destfile)
shutil.copy(cfuncs_file, self.cfuncs_destfile + '.c')
+ shutil.copy(cfuncs_file.replace('.c', '.h'),
+ self.cfuncs_destfile + '.h')
compiler = ccompiler.new_compiler()
compiler.compile(['cfuncs.c'], debug=True, extra_postargs=['-fPIC'])
diff --git a/Cython/Debugger/Tests/cfuncs.h b/Cython/Debugger/Tests/cfuncs.h
new file mode 100644
index 000000000..3b21bc2d5
--- /dev/null
+++ b/Cython/Debugger/Tests/cfuncs.h
@@ -0,0 +1 @@
+void some_c_function(void);
diff --git a/Cython/Debugger/Tests/codefile b/Cython/Debugger/Tests/codefile
index c64c332de..6b4c6b6ad 100644
--- a/Cython/Debugger/Tests/codefile
+++ b/Cython/Debugger/Tests/codefile
@@ -1,7 +1,7 @@
cdef extern from "stdio.h":
int puts(char *s)
-cdef extern:
+cdef extern from "cfuncs.h":
void some_c_function()
import os