From 346e07e8da48b47e734948eb69d7e4ee315abc11 Mon Sep 17 00:00:00 2001 From: John Szakmeister Date: Tue, 25 Nov 2014 06:15:57 -0500 Subject: [PATCH 1/2] 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() From 80cda3f2fbafb984bc33b27abe9ef0168d4ba78c Mon Sep 17 00:00:00 2001 From: Steven Oliver Date: Tue, 25 Nov 2014 13:47:13 -0500 Subject: [PATCH 2/2] build: add failure message along with number in GenerateHelptags.cmake --- cmake/GenerateHelptags.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/GenerateHelptags.cmake b/cmake/GenerateHelptags.cmake index 090cdf8ef4..658f4ab9cc 100644 --- a/cmake/GenerateHelptags.cmake +++ b/cmake/GenerateHelptags.cmake @@ -22,5 +22,5 @@ execute_process( RESULT_VARIABLE res) if(NOT res EQUAL 0) - message(FATAL_ERROR "Generating helptags failed: ${err}") + message(FATAL_ERROR "Generating helptags failed: ${err} - ${res}") endif()