]> https://gitweb.dealii.org/ - dealii.git/commitdiff
fix warnings in tests 7197/head
authorTimo Heister <timo.heister@gmail.com>
Thu, 13 Sep 2018 14:40:10 +0000 (10:40 -0400)
committerTimo Heister <timo.heister@gmail.com>
Sun, 16 Sep 2018 14:54:37 +0000 (10:54 -0400)
tests/base/quadrature_simplex_04.cc
tests/parameter_handler/parameter_handler_1_include.cc
tests/parameter_handler/parameter_handler_1_include_fail.cc
tests/parameter_handler/parameter_handler_22_last_line.cc

index c51873d8f36af5caf390f8fd5325d508c61a0f3f..4e7dd1a6792254ea51d3307f69d5b0c30b8034e8 100644 (file)
@@ -25,7 +25,7 @@
 #include "simplex.h"
 
 void
-test(int n)
+test(unsigned int n)
 {
   const unsigned int dim = 2;
 
index 4d73d0a7b2cc4f2501979cb073b27668047d9969..5e183c2ff17ac2b157c9a25d28e0c4e2dcc380d2 100644 (file)
@@ -43,7 +43,8 @@ main()
 
   // go into the source dir to read files there. this
   // is necessary so that we can include files there
-  chdir(SOURCE_DIR);
+  const int chdir_return_code = chdir(SOURCE_DIR);
+  AssertThrow(chdir_return_code == 0, ExcInternalError());
   check("parameter_handler_1_include.prm");
 
   return 0;
index d316a04ee7fef0d7674e40d0106cf2758a680023..f860ebd2808c159db0d440c3f8b8354a22b3cfdd 100644 (file)
@@ -54,7 +54,8 @@ main()
 
   // go into the source dir to read files there. this
   // is necessary so that we can include files there
-  chdir(SOURCE_DIR);
+  const int chdir_return_code = chdir(SOURCE_DIR);
+  AssertThrow(chdir_return_code == 0, ExcInternalError());
   check("parameter_handler_1_include_fail.prm");
 
   return 0;
index dd672995024bd9556df8d43b4c4ecc694eb57906..2e1ebb99b938780fcedae0f760dc1cb8ae65af5c 100644 (file)
@@ -44,7 +44,8 @@ main()
 
   // go into the source dir to read files there. this
   // is necessary so that we can include files there
-  chdir(SOURCE_DIR);
+  const int chdir_return_code = chdir(SOURCE_DIR);
+  AssertThrow(chdir_return_code == 0, ExcInternalError());
   check("parameter_handler_22_last_line.prm", "");
   check("parameter_handler_22_last_line.prm", "# end-of-parameter-section");
 

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.