Skip to content

Commit 6df3339

Browse files
author
Damian Rouson
committed
Skip tests that fail w/GCC<7.3 if detect older GCC
1 parent 63eb380 commit 6df3339

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -660,12 +660,14 @@ if(opencoarrays_aware_compiler)
660660
# Pure send tests
661661
add_caf_test(send_array 2 send_array)
662662
add_caf_test(send_convert_char_array 2 send_convert_char_array)
663-
add_caf_test(send_convert_nums 2 send_convert_nums)
664663

665664
# Pure sendget tests
666-
add_caf_test(sendget_convert_nums 3 sendget_convert_nums)
667665
add_caf_test(sendget_convert_char_array 3 sendget_convert_char_array)
668666
add_caf_test(strided_sendget 3 strided_sendget)
667+
if (gfortran_compiler AND (NOT CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 7.3.0))
668+
add_caf_test(sendget_convert_nums 3 sendget_convert_nums)
669+
add_caf_test(send_convert_nums 2 send_convert_nums)
670+
endif()
669671

670672
add_caf_test(co_sum 4 co_sum_test)
671673
add_caf_test(co_broadcast 4 co_broadcast_test)

src/tests/unit/send-get/CMakeLists.txt

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,24 @@ caf_compile_executable(get_with_vector_index get_with_vector_index.f90)
1414

1515
## Pure send() tests
1616
caf_compile_executable(send_array send_array_test.f90)
17-
caf_compile_executable(send_convert_nums send_convert_nums.f90)
1817
caf_compile_executable(send_convert_char_array send_convert_char_array.f90)
1918
caf_compile_executable(send_with_vector_index send_with_vector_index.f90)
2019

2120
# Pure sendget() tests
22-
caf_compile_executable(sendget_convert_nums sendget_convert_nums.f90)
2321
caf_compile_executable(sendget_convert_char_array sendget_convert_char_array.f90)
2422
#caf_compile_executable(sendget_with_vector_index sendget_with_vector_index.f90)
2523
caf_compile_executable(strided_sendget strided_sendget.f90)
2624
set_target_properties(build_strided_sendget
2725
PROPERTIES MIN_IMAGES 3)
26+
27+
if (gfortran_compiler AND (NOT CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 7.3.0))
28+
caf_compile_executable(sendget_convert_nums sendget_convert_nums.f90)
29+
caf_compile_executable(send_convert_nums send_convert_nums.f90)
30+
elseif((CAF_RUN_DEVELOPER_TESTS OR $ENV{OPENCOARRAYS_DEVELOPER}))
31+
message( AUTHOR_WARNING
32+
"Skipping building the following tests due to GFortran < 7.3.0 lack of compatibility:
33+
sendget_convert_nums.f90"
34+
)
35+
36+
endif()
37+

0 commit comments

Comments
 (0)