Skip to content
Snippets Groups Projects
Commit a34702f2 authored by Christoph Grüninger's avatar Christoph Grüninger
Browse files

[CMake][CTest] Treat tests returning code 77 as skipped.

Like we do for Autotools.
This is only supported for CMake 3.0 or newer. Oder versions ignore
the property and report the test as failed.
parent 4ba9d243
No related branches found
No related tags found
No related merge requests found
......@@ -30,3 +30,10 @@ add_test(selectiontest selectiontest)
add_test(indicestest indicestest)
add_test(syncertest syncertest)
add_test(variablesizecommunicatortest variablesizecommunicatortest)
# treat tests returning code 77 as skipped
set_tests_properties(
indicestest
syncertest
variablesizecommunicatortest
PROPERTIES SKIP_RETURN_CODE 77)
......@@ -170,7 +170,12 @@ foreach(_TEST ${TESTPROGS})
add_test(${_TEST} ${_TEST})
endforeach(_TEST)
#Set properties for failing tests
# treat tests returning code 77 as skipped
set_tests_properties(
mpicollectivecommunication
PROPERTIES SKIP_RETURN_CODE 77)
# set properties for failing tests
set_tests_properties(
${FAILTESTS}
PROPERTIES WILL_FAIL true)
......@@ -183,5 +188,3 @@ endforeach(_TEST)
set_tests_properties(
${COMPILEFAILTESTS}
PROPERTIES WILL_FAIL true)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment