From 346e07e8da48b47e734948eb69d7e4ee315abc11 Mon Sep 17 00:00:00 2001 From: John Szakmeister Date: Tue, 25 Nov 2014 06:15:57 -0500 Subject: 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. --- cmake/RunTests.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/RunTests.cmake b/cmake/RunTests.cmake index 0f301a6a10..227569f84c 100644 --- a/cmake/RunTests.cmake +++ b/cmake/RunTests.cmake @@ -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() -- cgit