aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2018-10-15 00:51:29 +0200
committerNirbheek Chauhan <nirbheek.chauhan@gmail.com>2018-10-15 00:17:49 -0700
commit87d85c7fcb7f83e1832c523b3fa0208ff1243304 (patch)
tree591f5c8c3a9b8833cf7f8b2bd97cd9ee8e356e41
parentcef0e4e73005eec8f10c56cdc73bc93ebc6ba55d (diff)
downloadmeson-87d85c7fcb7f83e1832c523b3fa0208ff1243304.zip
meson-87d85c7fcb7f83e1832c523b3fa0208ff1243304.tar.gz
meson-87d85c7fcb7f83e1832c523b3fa0208ff1243304.tar.bz2
Add macOS test for duplicate `-delete_rpath` handling
* Without commit 3a8911a07fd120b6d06b00e0743cab8c2d980923 the newly added test `test_duplicate_rpath` in `DarwinTests` would fail. Example: https://travis-ci.org/mesonbuild/meson/jobs/441412556
-rwxr-xr-xrun_unittests.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/run_unittests.py b/run_unittests.py
index dfa9bc9..0f0e0e3 100755
--- a/run_unittests.py
+++ b/run_unittests.py
@@ -3179,6 +3179,18 @@ class DarwinTests(BasePlatformTests):
self.assertEqual(self._get_darwin_versions(targets['intstringver']), ('1111.0.0', '2.5.0'))
self.assertEqual(self._get_darwin_versions(targets['stringlistvers']), ('2.6.0', '2.6.1'))
+ def test_duplicate_rpath(self):
+ testdir = os.path.join(self.unit_test_dir, '10 build_rpath')
+ # We purposely pass a duplicate rpath to Meson, in order
+ # to ascertain that Meson does not call install_name_tool
+ # with duplicate -delete_rpath arguments, which would
+ # lead to erroring out on installation
+ os.environ["LDFLAGS"] = "-Wl,-rpath,/foo/bar"
+ self.init(testdir)
+ self.build()
+ self.install()
+ del os.environ["LDFLAGS"]
+
class LinuxlikeTests(BasePlatformTests):
'''