ENH: Reduce number of GetCurrentWorkingDirectory
This commit is contained in:
parent
d401fcfc2b
commit
ccf46f544e
|
@ -2215,7 +2215,7 @@ void cmCTest::ProcessDirectory(cmCTest::tm_VectorOfStrings &passed,
|
|||
}
|
||||
cres.m_Output = output;
|
||||
cres.m_ReturnValue = retVal;
|
||||
std::string nwd = cmSystemTools::GetCurrentWorkingDirectory();
|
||||
std::string nwd = it->m_Directory;
|
||||
if ( nwd.size() > m_ToplevelPath.size() )
|
||||
{
|
||||
nwd = "." + nwd.substr(m_ToplevelPath.size(), nwd.npos);
|
||||
|
|
Loading…
Reference in New Issue