]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Return a nonzero value if the quick tests fail.
authorDavid Wells <wellsd2@rpi.edu>
Sat, 30 Apr 2016 16:18:13 +0000 (12:18 -0400)
committerDavid Wells <wellsd2@rpi.edu>
Sat, 30 Apr 2016 19:15:11 +0000 (15:15 -0400)
Previously 'make test' would return 0 regardless of whether or not any
quick tests failed.

tests/quick_tests/run.cmake

index bededcaf2d444473fb88f94077ccce1a0e838183..94dc5471ec06f65fc917d1690cce3d21d4374638 100644 (file)
@@ -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()

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.