We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ffccd88 commit fd023d9Copy full SHA for fd023d9
test/CMakeLists.txt
@@ -45,12 +45,18 @@ if(WIN32)
45
file_tests.cpp
46
socket_tests.cpp
47
)
48
+else()
49
+ # let more time for some tests
50
+ set(async_auto_reset_event_tests_TIMEOUT 60)
51
endif()
52
53
foreach(test ${tests})
54
get_filename_component(test_name ${test} NAME_WE)
55
add_executable(${test_name} ${test})
56
target_link_libraries(${test_name} PRIVATE tests-main)
57
string(REPLACE "_" " " test_prefix ${test_name})
- doctest_discover_tests(${test_name} TEST_PREFIX ${test_prefix}- PROPERTIES TIMEOUT 30)
58
+ if (NOT DEFINED ${test_name}_TIMEOUT)
59
+ set(${test_name}_TIMEOUT 30)
60
+ endif()
61
+ doctest_discover_tests(${test_name} TEST_PREFIX ${test_prefix}- PROPERTIES TIMEOUT ${${test_name}_TIMEOUT})
62
endforeach()
0 commit comments