aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2022-07-11 00:13:35 -0400
committerNirbheek Chauhan <nirbheek@centricular.com>2022-08-08 19:10:00 +0530
commit4e094f203b800cd58caef8fff80ee7349f2d1c5b (patch)
tree09a67ceaf96bfb8340eb89ceefdc1e4fdfe53131
parent738030ee84d6536865a24e7da66989a6a936e4cb (diff)
downloadmeson-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.py6
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],