Skip a few tests properly

pull/1253/head
Nirbheek Chauhan 8 years ago
parent 2f5943d34d
commit 28e491c706
  1. 15
      test cases/d/3 shared library/meson.build
  2. 0
      test cases/d/3 shared library/no-installed-files

@ -1,12 +1,9 @@
project('D Shared Library', 'd')
if meson.get_compiler('d').get_id() != 'gcc'
ldyn = shared_library('stuff', 'libstuff.d', install : true)
ed = executable('app_d', 'app.d', link_with : ldyn, install : true)
test('linktest_dyn', ed)
else
message('GDC can not build shared libraries. Test skipped.')
install_data('no-installed-files', install_dir : '')
if meson.get_compiler('d').get_id() == 'gcc'
error('MESON_SKIP_TEST: GDC can not build shared libraries')
endif
ldyn = shared_library('stuff', 'libstuff.d', install : true)
ed = executable('app_d', 'app.d', link_with : ldyn, install : true)
test('linktest_dyn', ed)

Loading…
Cancel
Save