Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r55258 - trunk/libs/graph/test
From: jewillco_at_[hidden]
Date: 2009-07-30 14:44:41


Author: jewillco
Date: 2009-07-29 08:49:44 EDT (Wed, 29 Jul 2009)
New Revision: 55258
URL: http://svn.boost.org/trac/boost/changeset/55258

Log:
Added assertion that input file was opened correctly
Text files modified:
   trunk/libs/graph/test/metis_test.cpp | 1 +
   1 files changed, 1 insertions(+), 0 deletions(-)

Modified: trunk/libs/graph/test/metis_test.cpp
==============================================================================
--- trunk/libs/graph/test/metis_test.cpp (original)
+++ trunk/libs/graph/test/metis_test.cpp 2009-07-29 08:49:44 EDT (Wed, 29 Jul 2009)
@@ -33,6 +33,7 @@
 
   // Open the METIS input file
   std::ifstream in(filename);
+ assert (in.good());
   graph::metis_reader reader(in);
 
   // Load the graph using the default distribution


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk