]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix test output for base/array_view_09 in release mode 4681/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Wed, 2 Aug 2017 16:44:42 +0000 (18:44 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Wed, 2 Aug 2017 16:52:43 +0000 (18:52 +0200)
tests/base/array_view_09.cc

index dad664ad23334ec800b9c009bf3f2d8287f282dd..7b95c78680de5802a331ad5f53fcfb543d8bec42 100644 (file)
@@ -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;

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.