diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2020-02-21 17:03:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-21 17:03:08 +0200 |
commit | 33fbc548ab74e79280d2f57b2cd499d14c1f1e91 (patch) | |
tree | 0791f09890c3bd99048d38a4488a6116344e8c16 /run_unittests.py | |
parent | 48f3e72493c28d7721c6f25e644638bad5c63835 (diff) | |
parent | 36b4dec26270e8908307e80fcc174004bc69a181 (diff) | |
download | meson-33fbc548ab74e79280d2f57b2cd499d14c1f1e91.zip meson-33fbc548ab74e79280d2f57b2cd499d14c1f1e91.tar.gz meson-33fbc548ab74e79280d2f57b2cd499d14c1f1e91.tar.bz2 |
Merge pull request #6668 from mesonbuild/nirbheek/strip-more-unused-linkerlike-args
macOS: Remove more unused linkerlike args
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-x | run_unittests.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/run_unittests.py b/run_unittests.py index 2874a29..033647c 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -4896,6 +4896,11 @@ class DarwinTests(BasePlatformTests): self.build() self.install() + def test_removing_unused_linker_args(self): + testdir = os.path.join(self.common_test_dir, '108 has arg') + env = {'CFLAGS': '-L/tmp -L /var/tmp -headerpad_max_install_names -Wl,-export_dynamic'} + self.init(testdir, override_envvars=env) + @unittest.skipUnless(not is_windows(), "requires something Unix-like") class LinuxlikeTests(BasePlatformTests): @@ -5944,7 +5949,6 @@ class LinuxlikeTests(BasePlatformTests): ''' testdir = os.path.join(self.common_test_dir, testdir) subdir = os.path.join(testdir, subdir_path) - curdir = os.getcwd() with chdir(subdir): # Can't distribute broken symlinks in the source tree because it breaks # the creation of zipapps. Create it dynamically and run the test by |