summaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
authorchitranjali <chitranjali189@gmail.com>2018-03-21 14:19:36 +0530
committerchitranjali <chitranjali189@gmail.com>2018-03-29 13:26:32 +0530
commit83766313a71e79fd81bc6d89cabdb21f90fc3251 (patch)
tree2a4ec073bbd1a1d64c20f5367ce3190b90abf759 /run_unittests.py
parentb4aee4675afd9f9f4a36aea628bab4249d7addbc (diff)
downloadmeson-83766313a71e79fd81bc6d89cabdb21f90fc3251.tar.gz
fix2865
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-xrun_unittests.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/run_unittests.py b/run_unittests.py
index 6ab549c0c..65ededf7b 100755
--- a/run_unittests.py
+++ b/run_unittests.py
@@ -1897,6 +1897,17 @@ 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, '25 shared_mod linking')
+ out = self.init(tdir)
+ for expected in [
+ r'WARNING: Linking shared modules to targets is not recommended'
+ ]:
+ self.assertRegex(out, re.escape(expected))
+
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'])