From: Mark Florisson Date: Thu, 9 Dec 2010 20:44:16 +0000 (+0100) Subject: Compile C test sample code with -fPIC X-Git-Tag: 0.14.rc0~15^2~1 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=90603b71857338a1001af50155dcf5bfb6cab945;p=cython.git Compile C test sample code with -fPIC --- 90603b71857338a1001af50155dcf5bfb6cab945 diff --cc Cython/Debugger/Tests/TestLibCython.py index 8afb3279,f02c2e8b..69145d52 --- a/Cython/Debugger/Tests/TestLibCython.py +++ b/Cython/Debugger/Tests/TestLibCython.py @@@ -45,7 -45,7 +45,7 @@@ class DebuggerTestCase(unittest.TestCas shutil.copy(cfuncs_file, self.cfuncs_destfile + '.c') compiler = ccompiler.new_compiler() -- compiler.compile(['cfuncs.c'], debug=True) ++ compiler.compile(['cfuncs.c'], debug=True, extra_postargs=['-fPIC']) opts = dict( test_directory=self.tempdir, diff --cc Cython/Debugger/Tests/test_libcython_in_gdb.py index 728328a4,f45372e5..e8827b66 --- a/Cython/Debugger/Tests/test_libcython_in_gdb.py +++ b/Cython/Debugger/Tests/test_libcython_in_gdb.py @@@ -399,6 -382,8 +399,6 @@@ def main(version, trace_code=False) if trace_code: tracer = trace.Trace(count=False, trace=True, outfile=sys.stderr, ignoredirs=[sys.prefix, sys.exec_prefix]) - tracer.runfunc(_main) + tracer.runfunc(runtests) else: - runtests() - _main() - -main() ++ runtests() diff --cc runtests.py index 1c2ba2d0,fae60394..25cb8b93 --- a/runtests.py +++ b/runtests.py @@@ -643,7 -644,8 +644,8 @@@ class CythonUnitTestCase(CythonCompileT except Exception: pass -# TODO: Re-enable once they're more robust. -include_debugger = sys.version_info[:2] >= (2, 5) and False ++ +include_debugger = sys.version_info[:2] > (2, 5) def collect_unittests(path, module_prefix, suite, selectors): def file_matches(filename):