From: Wolfgang Bangerth Date: Mon, 12 Sep 2011 01:27:06 +0000 (+0000) Subject: Assert that the file we read in fact exists. X-Git-Tag: v8.0.0~3473 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad644d3465ab804564749d4d94f11465439e0021;p=dealii.git Assert that the file we read in fact exists. git-svn-id: https://svn.dealii.org/trunk@24307 0785d39b-7218-0410-832d-ea1e28bc413d --- 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); }