build: print the error result when the tests fail

Any diagnostic information is useful when things fail.  In my case, it
printed out the fact that the tests were segfaulting.
This commit is contained in:
John Szakmeister 2014-11-25 06:15:57 -05:00
parent bcab2905d8
commit 346e07e8da

View File

@ -20,5 +20,5 @@ execute_process(
RESULT_VARIABLE res)
if(NOT res EQUAL 0)
message(FATAL_ERROR "Running ${TEST_TYPE} tests failed.")
message(FATAL_ERROR "Running ${TEST_TYPE} tests failed with error: ${res}.")
endif()