diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2022-07-11 00:13:35 -0400 |
---|---|---|
committer | Eli Schwartz <eschwartz@archlinux.org> | 2022-07-11 17:58:02 -0400 |
commit | 8afcca2d26207c2e793473096ee8cb375f715b91 (patch) | |
tree | bba8e01707e072242a846dce61a6d50bb704fbf8 | |
parent | 48709dd2ea3d0ec49f44beb53fc321be726e3ed2 (diff) | |
download | meson-8afcca2d26207c2e793473096ee8cb375f715b91.zip meson-8afcca2d26207c2e793473096ee8cb375f715b91.tar.gz meson-8afcca2d26207c2e793473096ee8cb375f715b91.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 6d8febb..cdb3867 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], |