summaryrefslogtreecommitdiff
path: root/tests/scanner
diff options
context:
space:
mode:
authorChristoph Reiter <reiter.christoph@gmail.com>2019-08-08 21:12:03 +0200
committerChristoph Reiter <reiter.christoph@gmail.com>2019-08-08 21:12:03 +0200
commitc1f4af2830ff636fa32c36964f7ee7f78d94824b (patch)
treebc79a0f7209340a8519be6d2f3bd30c18155da93 /tests/scanner
parent399afe04f7e59371e48544a0efb290e028c72756 (diff)
downloadgobject-introspection-c1f4af2830ff636fa32c36964f7ee7f78d94824b.tar.gz
ccompiler: use the distutils linker in the dumper
No need to hardcode things since distutils looks it up. Similar to !170 but for Windows.
Diffstat (limited to 'tests/scanner')
-rw-r--r--tests/scanner/test_ccompiler.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/scanner/test_ccompiler.py b/tests/scanner/test_ccompiler.py
index 5890aa9b..6c0674a1 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_cmd(self):
+ with Environ(dict(CC="foobar")):
+ compiler = CCompiler()
+ self.assertEqual(compiler.linker_cmd[0], "foobar")
+
def test_link_args_override(self):
with Environ(dict(CC="foobar")):
compiler = CCompiler()