From: bangerth Date: Fri, 20 Sep 2013 00:43:29 +0000 (+0000) Subject: Check return value of system() call. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44583c6d243288f1912c3f3a1df27992e54266a7;p=dealii-svn.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()); }