From e057983c794fb54a52c0187d6d763225cd3bd3c2 Mon Sep 17 00:00:00 2001 From: bangerth Date: Mon, 12 Sep 2011 01:27:06 +0000 Subject: [PATCH] Assert that the file we read in fact exists. git-svn-id: https://svn.dealii.org/trunk@24307 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/mpi/coarse_grid_common.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/mpi/coarse_grid_common.h b/tests/mpi/coarse_grid_common.h index e2a2b39b5f..76a4cdda5a 100644 --- a/tests/mpi/coarse_grid_common.h +++ b/tests/mpi/coarse_grid_common.h @@ -29,6 +29,8 @@ void cat_file(const char * filename) { std::ifstream in(filename); + Assert (in, ExcIO()); + while (in) { std::string s; @@ -36,7 +38,7 @@ void cat_file(const char * filename) deallog.get_file_stream() << s << "\n"; } in.close(); - + std::remove (filename); } -- 2.39.5