Skip to content

Commit

Permalink
tests: skip template test for windows shared fortran
Browse files Browse the repository at this point in the history
This is only supported with gfortran, see "test cases/fortran/6 dynamic"
for more details. Skip it explicitly here too.
  • Loading branch information
eli-schwartz authored and nirbheek committed Aug 8, 2022
1 parent 738030e commit 4e094f2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions unittests/allplatformstests.py
Expand Up @@ -1945,6 +1945,12 @@ def test_templates(self):

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],
Expand Down

0 comments on commit 4e094f2

Please sign in to comment.