aboutsummaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2018-03-29 22:22:51 +0300
committerGitHub <noreply@github.com>2018-03-29 22:22:51 +0300
commit8eadc9d06847db79f3906670318a7aff7e7df7f4 (patch)
tree99197f31e4f80cf80410266a2d833a0f37164dbb /run_unittests.py
parentbe3387d937addd30b3aa1ec0639bba419ceee477 (diff)
parentcc6be2e43d403f240f8e9bb1f0b80825124b71cf (diff)
downloadmeson-8eadc9d06847db79f3906670318a7aff7e7df7f4.zip
meson-8eadc9d06847db79f3906670318a7aff7e7df7f4.tar.gz
meson-8eadc9d06847db79f3906670318a7aff7e7df7f4.tar.bz2
Merge pull request #3277 from chitranjali/shared-mod-link
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-xrun_unittests.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/run_unittests.py b/run_unittests.py
index 96a98eb..9f0ae3f 100755
--- a/run_unittests.py
+++ b/run_unittests.py
@@ -1899,6 +1899,16 @@ int main(int argc, char **argv) {
exception_raised = True
self.assertTrue(exception_raised, 'Double locking did not raise exception.')
+ def test_check_module_linking(self):
+ """
+ Test that shared modules are not linked with targets(link_with:) #2865
+ """
+ tdir = os.path.join(self.unit_test_dir, '26 shared_mod linking')
+ out = self.init(tdir)
+ msg = ('''WARNING: target links against shared modules. This is not
+recommended as it can lead to undefined behaviour on some platforms''')
+ self.assertIn(msg, out)
+
def test_ndebug_if_release_disabled(self):
testdir = os.path.join(self.unit_test_dir, '25 ndebug if-release')
self.init(testdir, extra_args=['--buildtype=release', '-Db_ndebug=if-release'])