cmake: allow tests to skip by exiting 77

The autotools framework supports this already.
master
Mike Frysinger 2021-03-06 11:57:14 -05:00
parent 122799495c
commit 16fab2f35a
1 changed files with 1 additions and 0 deletions

View File

@ -13,5 +13,6 @@ MACRO(ADD_GD_TESTS)
target_link_libraries (${test_prog_name} gdTest m ${ARGV0})
ENDIF(WIN32)
add_test(NAME ${test_prog_name} COMMAND ${test_prog_name})
SET_PROPERTY(TEST ${test_prog_name} PROPERTY SKIP_RETURN_CODE 77)
ENDFOREACH(test_name)
ENDMACRO(ADD_GD_TESTS)