COIN-OR::LEMON - Graph Library

Changeset 855:8c44b64dd436 in lemon-0.x for src/test/preflow_test.cc


Ignore:
Timestamp:
09/15/04 13:50:50 (16 years ago)
Author:
Alpar Juttner
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1155
Message:

Better handling of the input files of the tests.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/test/preflow_test.cc

    r845 r855  
    66#include <hugo/skeletons/graph.h>
    77#include <hugo/skeletons/maps.h>
     8
     9#include <string.h>
     10
    811using namespace hugo;
    912
     
    6770  typedef Preflow<Graph, int> PType;
    6871
    69   std::ifstream file("preflow_graph.out");
     72  char *f_name;
     73 
     74  f_name=new char[strlen(getenv("srcdir"))+50];
     75  strcpy(f_name,getenv("srcdir"));
     76  strcat(f_name,"/preflow_graph.inp");
     77 
     78  std::ifstream file(f_name);
     79 
     80  check(file,"Input file '" << f_name << "' not found.");
     81 
     82  delete [] f_name;
    7083 
    7184  Graph G;
Note: See TracChangeset for help on using the changeset viewer.