aboutsummaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2020-09-14 14:37:30 -0700
committerDylan Baker <dylan@pnwbakers.com>2020-09-16 20:28:56 -0700
commit3526b36a772b1ae38c7c0be30cf8cdb766e8914f (patch)
tree64349c89c568a9b9004d12b175bef16fedf32d7c /run_unittests.py
parent4401668c9ac8c42d2e8633e32d168a2c5e1b0ee8 (diff)
downloadmeson-3526b36a772b1ae38c7c0be30cf8cdb766e8914f.zip
meson-3526b36a772b1ae38c7c0be30cf8cdb766e8914f.tar.gz
meson-3526b36a772b1ae38c7c0be30cf8cdb766e8914f.tar.bz2
linkers: fully type annotate and fix mypy issues
This makes GnuDynamicLinker not suitable for instantiation, so the tests need to be changed to use the BFD class.
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-xrun_unittests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/run_unittests.py b/run_unittests.py
index 32b3d34..0bcf617 100755
--- a/run_unittests.py
+++ b/run_unittests.py
@@ -465,7 +465,7 @@ class InternalTests(unittest.TestCase):
def test_compiler_args_class_gnuld(self):
## Test --start/end-group
- linker = mesonbuild.linkers.GnuDynamicLinker([], MachineChoice.HOST, 'fake', '-Wl,', [])
+ linker = mesonbuild.linkers.GnuBFDDynamicLinker([], MachineChoice.HOST, '-Wl,', [])
gcc = mesonbuild.compilers.GnuCCompiler([], 'fake', False, MachineChoice.HOST, mock.Mock(), linker=linker)
## Ensure that the fake compiler is never called by overriding the relevant function
gcc.get_default_include_dirs = lambda: ['/usr/include', '/usr/share/include', '/usr/local/include']
@@ -493,7 +493,7 @@ class InternalTests(unittest.TestCase):
def test_compiler_args_remove_system(self):
## Test --start/end-group
- linker = mesonbuild.linkers.GnuDynamicLinker([], MachineChoice.HOST, 'fake', '-Wl,', [])
+ linker = mesonbuild.linkers.GnuBFDDynamicLinker([], MachineChoice.HOST, '-Wl,', [])
gcc = mesonbuild.compilers.GnuCCompiler([], 'fake', False, MachineChoice.HOST, mock.Mock(), linker=linker)
## Ensure that the fake compiler is never called by overriding the relevant function
gcc.get_default_include_dirs = lambda: ['/usr/include', '/usr/share/include', '/usr/local/include']