From: David Wells Date: Sat, 30 Apr 2016 16:18:13 +0000 (-0400) Subject: Return a nonzero value if the quick tests fail. X-Git-Tag: v8.5.0-rc1~1063^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=361d040e99b0f14f0b52f27ca9befb6d46c4b631;p=dealii.git Return a nonzero value if the quick tests fail. Previously 'make test' would return 0 regardless of whether or not any quick tests failed. --- diff --git a/tests/quick_tests/run.cmake b/tests/quick_tests/run.cmake index bededcaf2d..94dc5471ec 100644 --- a/tests/quick_tests/run.cmake +++ b/tests/quick_tests/run.cmake @@ -1,6 +1,6 @@ ## --------------------------------------------------------------------- ## -## Copyright (C) 2013 by the deal.II authors +## Copyright (C) 2013 - 2016 by the deal.II authors ## ## This file is part of the deal.II library. ## @@ -61,4 +61,11 @@ recent version or use a different MPI library like MPICH.\n" ENDFOREACH() + # The CMake command MESSAGE(SEND_ERROR ...) is, to the best of the authors' + # knowledge, the only way to set the exit status of CMake to a nonzero value. + # If we used MESSAGE(SEND_ERROR ...) at the top (with the actual error + # message) then subsequent messages (i.e., the test specific help) would not + # be printed. Hence, do it down here. + MESSAGE(SEND_ERROR "") + ENDIF()