From 361d040e99b0f14f0b52f27ca9befb6d46c4b631 Mon Sep 17 00:00:00 2001 From: David Wells Date: Sat, 30 Apr 2016 12:18:13 -0400 Subject: [PATCH] Return a nonzero value if the quick tests fail. Previously 'make test' would return 0 regardless of whether or not any quick tests failed. --- tests/quick_tests/run.cmake | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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() -- 2.39.5