BUG: After running builtin ctest, go back to the original directory
This commit is contained in:
parent
c1002cccb0
commit
9b8ca58538
@ -2946,7 +2946,11 @@ int cmCTest::RunTest(std::vector<const char*> argv, std::string* output, int *re
|
|||||||
args.push_back(argv[i]);
|
args.push_back(argv[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
std::string oldpath = cmSystemTools::GetCurrentWorkingDirectory();
|
||||||
|
|
||||||
*retVal = inst.Run(args, output);
|
*retVal = inst.Run(args, output);
|
||||||
|
cmSystemTools::ChangeDirectory(oldpath.c_str());
|
||||||
|
|
||||||
if(m_Verbose)
|
if(m_Verbose)
|
||||||
{
|
{
|
||||||
std::cout << "Internal cmCTest object used to run test.\n";
|
std::cout << "Internal cmCTest object used to run test.\n";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user