From ccf46f544e994bc6c8776d4ac1f965ae8aeb4329 Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Wed, 31 Mar 2004 11:26:04 -0500 Subject: ENH: Reduce number of GetCurrentWorkingDirectory --- Source/cmCTest.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v0.12