From b627a31d562caaf4a74ae37f1226786b166b9372 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Fri, 20 Sep 2013 00:43:29 +0000 Subject: [PATCH] Check return value of system() call. git-svn-id: https://svn.dealii.org/branches/branch_port_the_testsuite@30868 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/tests.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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()); } -- 2.39.5