BUG: Make sure it always starts in the current directory when searching for tests

This commit is contained in:
Andy Cedilnik 2005-07-12 12:30:15 -04:00
parent 219bcf25ba
commit c9a7f056fd
1 changed files with 1 additions and 0 deletions

View File

@ -80,6 +80,7 @@ bool cmCTestSubdirCommand::InitialPass(std::vector<std::string> const& args)
std::string cwd = cmSystemTools::GetCurrentWorkingDirectory(); std::string cwd = cmSystemTools::GetCurrentWorkingDirectory();
for ( it = args.begin(); it != args.end(); ++ it ) for ( it = args.begin(); it != args.end(); ++ it )
{ {
cmSystemTools::ChangeDirectory(cwd.c_str());
std::string fname = cwd; std::string fname = cwd;
fname += "/"; fname += "/";
fname += *it; fname += *it;