Skip to content

Commit 812293f

Browse files
committed
try enabling nanosleep test on most platforms
1 parent 19677ab commit 812293f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/sleep/CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,9 @@ add_executable(fortran_nano_sleep test_sleep.f90)
6666
target_link_libraries(fortran_nano_sleep PRIVATE f_nano_sleep)
6767

6868
add_test(NAME Fortran_nano_sleep COMMAND fortran_nano_sleep)
69-
set_property(TEST Fortran_nano_sleep PROPERTY DISABLED true)
70-
# this test is shaky. Fails on MinGW and macOS Apple Silicon. Best to use an auxiliary C function to interface with C struct.
69+
if(APPLE AND CMAKE_Fortran_COMPILER_ID STREQUAL "LLVMFlang")
70+
set_property(TEST Fortran_nano_sleep PROPERTY DISABLED true)
71+
endif()
7172

7273
endif()
7374

0 commit comments

Comments
 (0)