From 8afcca2d26207c2e793473096ee8cb375f715b91 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Mon, 11 Jul 2022 00:13:35 -0400 Subject: 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. --- unittests/allplatformstests.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/unittests/allplatformstests.py b/unittests/allplatformstests.py index 6d8febbd4..cdb3867a3 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], -- cgit v1.2.3