BUG: Make sure it always starts in the current directory when searching for tests
This commit is contained in:
parent
219bcf25ba
commit
c9a7f056fd
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue