From 44583c6d243288f1912c3f3a1df27992e54266a7 Mon Sep 17 00:00:00 2001 From: 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