From: stephan b. <sg...@us...> - 2004-12-24 01:44:40
|
Update of /cvsroot/pclasses/pclasses2/src/System In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1452 Modified Files: testPathFinder.cpp Log Message: added fileExtensions() tests Index: testPathFinder.cpp =================================================================== RCS file: /cvsroot/pclasses/pclasses2/src/System/testPathFinder.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- testPathFinder.cpp 24 Dec 2004 01:40:16 -0000 1.1 +++ testPathFinder.cpp 24 Dec 2004 01:44:21 -0000 1.2 @@ -12,15 +12,27 @@ using P::System::PathFinder; - const char * ldp = getenv( "LD_LIBRARY_PATH" ); PathFinder f; f.addPath( "." ); + const char * ldp = getenv( "LD_LIBRARY_PATH" ); if( ldp ) f.addPath( ldp ); f.addPath( PCLASSES_LIB_DIR ); f.addPath( PCLASSES_PLUGINS_DIR ); + ldp = getenv( "HOME" ); + if( ldp ) f.addPath( ldp ); + + f.addExtension( ".a" ); + f.addExtension( ".so" ); + CERR << "path="<<f.pathString() << "\n"; + +#define FIND(A) CERR << "find("<<A<<") = " << f.find(A)<<"\n"; + FIND("libs11n"); + FIND("libpcore"); + FIND("libeshell"); +#undef FIND return 0; } |