aboutsummaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2020-06-08 12:15:39 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2020-06-22 15:01:45 -0700
commitfeef5a1c064af7d9e3143c6df559e112a371e7fe (patch)
treeb4abad3ebdb9f7c3b043063bb1dfb90b235848c0 /run_unittests.py
parentf71c828d99fcfc6961882b3c37fbe2d0a712a1e6 (diff)
downloadmeson-feef5a1c064af7d9e3143c6df559e112a371e7fe.zip
meson-feef5a1c064af7d9e3143c6df559e112a371e7fe.tar.gz
meson-feef5a1c064af7d9e3143c6df559e112a371e7fe.tar.bz2
unittests: Fix 51 ldflagdedup on Solaris
If the linker doesn't support --export-dynamic, skip test to deduplicate it, since it always fails finding 0 copies instead of 1.
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-xrun_unittests.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/run_unittests.py b/run_unittests.py
index 237203f..1a96f8f 100755
--- a/run_unittests.py
+++ b/run_unittests.py
@@ -6772,6 +6772,11 @@ class LinuxlikeTests(BasePlatformTests):
testdir = os.path.join(self.unit_test_dir, '52 ldflagdedup')
if is_cygwin() or is_osx():
raise unittest.SkipTest('Not applicable on Cygwin or OSX.')
+ env = get_fake_env()
+ cc = env.detect_c_compiler(MachineChoice.HOST)
+ linker = cc.linker
+ if not linker.export_dynamic_args(env):
+ raise unittest.SkipTest('Not applicable for linkers without --export-dynamic')
self.init(testdir)
build_ninja = os.path.join(self.builddir, 'build.ninja')
max_count = 0