Fixing flake8

pull/3277/head
chitranjali 7 years ago
parent 34cb503c85
commit cc6be2e43d
  1. 2
      mesonbuild/build.py
  2. 4
      run_unittests.py
  3. 5
      test cases/unit/25 shared_mod linking/meson.build
  4. 0
      test cases/unit/26 shared_mod linking/libfile.c
  5. 0
      test cases/unit/26 shared_mod linking/main.c
  6. 5
      test cases/unit/26 shared_mod linking/meson.build

@ -1034,7 +1034,7 @@ You probably should put it in link_with instead.''')
'''
for link_target in self.link_targets:
if isinstance(link_target, SharedModule):
mlog.warning('''target links against shared modules. This is not
mlog.warning('''target links against shared modules. This is not
recommended as it can lead to undefined behaviour on some platforms''')
return

@ -1901,9 +1901,9 @@ int main(int argc, char **argv) {
"""
Test that shared modules are not linked with targets(link_with:) #2865
"""
tdir = os.path.join(self.unit_test_dir, '25 shared_mod linking')
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
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)

@ -1,5 +0,0 @@
project('shared library linking test', 'c', 'cpp')
lib = shared_module('mylib', 'libfile.c')
exe = executable('prog', 'main.c', link_with : lib, install : true)

@ -0,0 +1,5 @@
project('shared library linking test', 'c', 'cpp')
mod = shared_module('mymod', 'libfile.c')
exe = executable('prog', 'main.c', link_with : mod, install : true)
Loading…
Cancel
Save