Increase timeout of test-unicode_all in Debug build

This commit is contained in:
Isaac Nickaein 2019-04-22 08:16:10 +04:30
parent ec43d27f9f
commit 4ac0fe2628

View file

@ -133,6 +133,12 @@ foreach(file ${files})
) )
set_tests_properties("${testcase}_all" PROPERTIES LABELS "all") set_tests_properties("${testcase}_all" PROPERTIES LABELS "all")
# Increase timeout for test-unicode_all on Debug build
string(TOUPPER "${CMAKE_BUILD_TYPE}" uppercase_CMAKE_BUILD_TYPE)
if (("${testcase}" STREQUAL "test-unicode") AND (uppercase_CMAKE_BUILD_TYPE STREQUAL DEBUG))
set_tests_properties("${testcase}_all" PROPERTIES TIMEOUT 3600)
endif()
if(JSON_Valgrind) if(JSON_Valgrind)
add_test(NAME "${testcase}_valgrind" add_test(NAME "${testcase}_valgrind"
COMMAND ${memcheck_command} ${CMAKE_CURRENT_BINARY_DIR}/${testcase} ${DOCTEST_TEST_FILTER} COMMAND ${memcheck_command} ${CMAKE_CURRENT_BINARY_DIR}/${testcase} ${DOCTEST_TEST_FILTER}