From: stephan b. <sg...@us...> - 2004-12-24 01:40:33
|
Update of /cvsroot/pclasses/pclasses2/src/System In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv636 Added Files: testPathFinder.cpp Log Message: egg --- NEW FILE: testPathFinder.cpp --- #include "pclasses/System/PathFinder.h" #include "pclasses/pclasses-config.h" #include <stdlib.h> // getenv() #ifndef CERR #define CERR std::cerr << __FILE__ << ":" << std::dec << __LINE__ << " : " #endif int main( int argc, char ** argv ) { CERR << "PathFinder tests...\n"; using P::System::PathFinder; const char * ldp = getenv( "LD_LIBRARY_PATH" ); PathFinder f; f.addPath( "." ); if( ldp ) f.addPath( ldp ); f.addPath( PCLASSES_LIB_DIR ); f.addPath( PCLASSES_PLUGINS_DIR ); CERR << "path="<<f.pathString() << "\n"; return 0; } |