We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10eb08d commit 5713bbbCopy full SHA for 5713bbb
src/tests/CMakeLists.txt
@@ -26,6 +26,17 @@ else()
26
set(DISABLE_ESTOP_TESTS true)
27
endif()
28
29
+if(NOT DISABLE_ESTOP_TESTS AND NOT DEFINED es_run_out)
30
+ file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/es_77.f90 "error stop 77; end")
31
+ try_run(es_run_out es_build_out
32
+ ${CMAKE_CURRENT_BINARY_DIR}/estop
33
+ ${CMAKE_CURRENT_BINARY_DIR}/es_77.f90
34
+ )
35
+ if(NOT es_run_out EQUAL 77)
36
+ set(DISABLE_ESTOP_TESTS true)
37
+ endif()
38
+endif()
39
+
40
add_executable(test_error_handling test_error_driver.f90)
41
42
add_executable(test_always_77 test_always_77.f90)
0 commit comments