diff options
author | chitranjali <chitranjali189@gmail.com> | 2018-03-23 22:18:27 +0530 |
---|---|---|
committer | chitranjali <chitranjali189@gmail.com> | 2018-03-29 13:32:36 +0530 |
commit | 34cb503c854e9afe2f3e13e9d4a5788c47b830a9 (patch) | |
tree | bce771ea5d9252b9c701d54ad4b56066ca1d8194 /run_unittests.py | |
parent | 83766313a71e79fd81bc6d89cabdb21f90fc3251 (diff) | |
download | meson-34cb503c854e9afe2f3e13e9d4a5788c47b830a9.zip meson-34cb503c854e9afe2f3e13e9d4a5788c47b830a9.tar.gz meson-34cb503c854e9afe2f3e13e9d4a5788c47b830a9.tar.bz2 |
PR review changes closes #2865
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-x | run_unittests.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/run_unittests.py b/run_unittests.py index 65ededf..cf60c11 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -1898,15 +1898,14 @@ int main(int argc, char **argv) { 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)) + 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') |