Skip to content

Commit aa27f7b

Browse files
committed
Don't run allocate_as_barrier_proc test if < 7.x
- closes #415 - Still broken for GFortran < 7.x
1 parent 30db78b commit aa27f7b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,12 @@ if(opencoarrays_aware_compiler)
646646
add_caf_test(register_vector 2 register_vector)
647647
add_caf_test(register_alloc_vector 2 register_alloc_vector)
648648
add_caf_test(allocate_as_barrier 2 allocate_as_barrier)
649-
add_caf_test(allocate_as_barrier_proc 8 allocate_as_barrier_proc)
649+
if(gfortran_compiler AND (NOT CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 7.0.0) OR (CAF_RUN_DEVELOPER_TESTS OR $ENV{OPENCOARRAYS_DEVELOPER}))
650+
if( CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 7.0.0 )
651+
message( AUTHOR_WARNING "Developer tests requested and GFortran < 7: test allocate_as_barrier_proc may fail" )
652+
endif()
653+
add_caf_test(allocate_as_barrier_proc 8 allocate_as_barrier_proc)
654+
endif()
650655
if (gfortran_compiler AND (NOT CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 7.0.0) OR (CAF_RUN_DEVELOPER_TESTS OR $ENV{OPENCOARRAYS_DEVELOPER}))
651656
message( STATUS "Allocatable components of coarray derived types only supported in GFortran >= 7 with OpenCoarrays > 1.8.4" )
652657
message( STATUS "(but full support not anticipated until OpenCoarrays 2.0 release)" )

0 commit comments

Comments
 (0)