diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2022-07-11 00:13:35 -0400 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2022-08-08 19:10:00 +0530 |
commit | 4e094f203b800cd58caef8fff80ee7349f2d1c5b (patch) | |
tree | 09a67ceaf96bfb8340eb89ceefdc1e4fdfe53131 | |
parent | 738030ee84d6536865a24e7da66989a6a936e4cb (diff) | |
download | meson-4e094f203b800cd58caef8fff80ee7349f2d1c5b.zip meson-4e094f203b800cd58caef8fff80ee7349f2d1c5b.tar.gz meson-4e094f203b800cd58caef8fff80ee7349f2d1c5b.tar.bz2 |
tests: skip template test for windows shared fortran
This is only supported with gfortran, see "test cases/fortran/6 dynamic"
for more details. Skip it explicitly here too.
-rw-r--r-- | unittests/allplatformstests.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/unittests/allplatformstests.py b/unittests/allplatformstests.py index 6e2f22d..26a91b6 100644 --- a/unittests/allplatformstests.py +++ b/unittests/allplatformstests.py @@ -1945,6 +1945,12 @@ class AllPlatformTests(BasePlatformTests): for lang in langs: for target_type in ('executable', 'library'): + if is_windows() and lang == 'fortran' and target_type == 'library': + # non-Gfortran Windows Fortran compilers do not do shared libraries in a Fortran standard way + # see "test cases/fortran/6 dynamic" + fc = detect_compiler_for(env, 'fortran', MachineChoice.HOST) + if fc.get_id() in {'intel-cl', 'pgi'}: + continue # test empty directory with tempfile.TemporaryDirectory() as tmpdir: self._run(self.meson_command + ['init', '--language', lang, '--type', target_type], |