From: Daniel Arndt Date: Wed, 2 Aug 2017 16:44:42 +0000 (+0200) Subject: Fix test output for base/array_view_09 in release mode X-Git-Tag: v9.0.0-rc1~1372^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F4681%2Fhead;p=dealii.git Fix test output for base/array_view_09 in release mode --- diff --git a/tests/base/array_view_09.cc b/tests/base/array_view_09.cc index dad664ad23..7b95c78680 100644 --- a/tests/base/array_view_09.cc +++ b/tests/base/array_view_09.cc @@ -118,6 +118,15 @@ void test () { deallog << exc.get_exc_name() << std::endl; } + // we only trigger the exception in debug mode + // just output the expected error message in release mode + // to make CTest happy +#ifndef DEBUG + deallog << "ExcMessage(\"The beginning of the array view should be before the end.\")" + << std::endl; + deallog << "ExcMessage(\"The beginning of the array view should be before the end.\")" + << std::endl; +#endif } deallog << "OK" << std::endl;