summaryrefslogtreecommitdiffstats
path: root/Source/cmCTest.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2004-03-31 16:26:04 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2004-03-31 16:26:04 (GMT)
commitccf46f544e994bc6c8776d4ac1f965ae8aeb4329 (patch)
tree5b5766e763944f5cef68eefaec53c286d5acbe8d /Source/cmCTest.cxx
parentd401fcfc2b3e28e5d24c47fba6ea51419419066d (diff)
downloadCMake-ccf46f544e994bc6c8776d4ac1f965ae8aeb4329.zip
CMake-ccf46f544e994bc6c8776d4ac1f965ae8aeb4329.tar.gz
CMake-ccf46f544e994bc6c8776d4ac1f965ae8aeb4329.tar.bz2
ENH: Reduce number of GetCurrentWorkingDirectory
Diffstat (limited to 'Source/cmCTest.cxx')
-rw-r--r--Source/cmCTest.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx
index 43a1b75..0a49349 100644
--- a/Source/cmCTest.cxx
+++ b/Source/cmCTest.cxx
@@ -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);