ENH: Reduce number of GetCurrentWorkingDirectory

This commit is contained in:
Andy Cedilnik 2004-03-31 11:26:04 -05:00
parent d401fcfc2b
commit ccf46f544e
1 changed files with 1 additions and 1 deletions

View File

@ -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);