From: Wolfgang Bangerth Date: Fri, 20 Sep 2013 00:43:29 +0000 (+0000) Subject: Check return value of system() call. X-Git-Tag: v8.1.0~570^2~232 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b627a31d562caaf4a74ae37f1226786b166b9372;p=dealii.git Check return value of system() call. git-svn-id: https://svn.dealii.org/branches/branch_port_the_testsuite@30868 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/tests.h b/tests/tests.h index 15b1f49adf..5c1a8dd2c8 100644 --- a/tests/tests.h +++ b/tests/tests.h @@ -206,7 +206,9 @@ struct MPILogInitAll */ void sort_file_contents (const std::string &filename) { - std::system ((std::string ("sort ") + filename + " -o " + filename).c_str()); + int error = std::system ((std::string ("sort ") + filename + " -o " + filename).c_str()); + Assert (error == 0, + ExcInternalError()); }