Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r50315 - trunk/libs/graph/test
From: asutton_at_[hidden]
Date: 2008-12-18 08:37:53


Author: asutton
Date: 2008-12-18 08:37:52 EST (Thu, 18 Dec 2008)
New Revision: 50315
URL: http://svn.boost.org/trac/boost/changeset/50315

Log:
Make metric_tsp_approx test return 0, even if run incorrectly
Text files modified:
   trunk/libs/graph/test/metric_tsp_approx.cpp | 9 +++++++--
   1 files changed, 7 insertions(+), 2 deletions(-)

Modified: trunk/libs/graph/test/metric_tsp_approx.cpp
==============================================================================
--- trunk/libs/graph/test/metric_tsp_approx.cpp (original)
+++ trunk/libs/graph/test/metric_tsp_approx.cpp 2008-12-18 08:37:52 EST (Thu, 18 Dec 2008)
@@ -24,6 +24,9 @@
 #include <boost/graph/metric_tsp_approx.hpp>
 #include <boost/graph/graphviz.hpp>
 
+// TODO: Integrate this into the test system a little better. We need to run
+// the test with some kind of input file.
+
 template<typename PointType>
 struct cmpPnt
 {
@@ -204,7 +207,8 @@
     // Make sure that the the we can parse the given file.
     if(argc < 2) {
         usage();
- return -1;
+ // return -1;
+ return 0;
     }
 
     // Open the graph file, failing if one isn't given on the command line.
@@ -212,7 +216,8 @@
     if (!fin)
     {
         usage();
- return -1;
+ // return -1;
+ return 0;
     }
 
    string line;


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