diff options
Diffstat (limited to 'tests/scanner')
-rw-r--r-- | tests/scanner/test_ccompiler.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/scanner/test_ccompiler.py b/tests/scanner/test_ccompiler.py index ac50e245..dd8700d8 100644 --- a/tests/scanner/test_ccompiler.py +++ b/tests/scanner/test_ccompiler.py @@ -62,6 +62,11 @@ class UnixCCompilerTest(unittest.TestCase): except ValueError: self.fail('%r is not a subsequence of %r' % (list1, list2)) + def test_link_args_override(self): + with Environ(dict(CC="foobar")): + compiler = CCompiler() + self.assertEqual(compiler.compiler.linker_so[0], "foobar") + def compile_args(self, environ={}, compiler_name='unix', pkg_config_cflags=[], cpp_includes=[], source='a.c', init_sections=[]): |