summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2002-03-15 15:43:24 (GMT)
committerKen Martin <ken.martin@kitware.com>2002-03-15 15:43:24 (GMT)
commit543b4ca1b9861b64668be0ae38c711a04964ba04 (patch)
treece90795a4f099bddf74001f11af21277f4154a81 /Source
parentcd91e580543af4e7a875058089f69f56355e05b6 (diff)
downloadCMake-543b4ca1b9861b64668be0ae38c711a04964ba04.zip
CMake-543b4ca1b9861b64668be0ae38c711a04964ba04.tar.gz
CMake-543b4ca1b9861b64668be0ae38c711a04964ba04.tar.bz2
less noisy about changing directories
Diffstat (limited to 'Source')
-rw-r--r--Source/ctest.cxx9
1 files changed, 8 insertions, 1 deletions
diff --git a/Source/ctest.cxx b/Source/ctest.cxx
index 7ff80ba..d010be8 100644
--- a/Source/ctest.cxx
+++ b/Source/ctest.cxx
@@ -132,6 +132,8 @@ void ctest::ProcessDirectory(int &passed, std::vector<std::string> &failed)
return;
}
+ int firstTest = 1;
+
std::string name;
std::vector<std::string> args;
cmRegularExpression ireg(this->m_IncludeRegExp.c_str());
@@ -154,7 +156,6 @@ void ctest::ProcessDirectory(int &passed, std::vector<std::string> &failed)
nwd += *j;
if (cmSystemTools::FileIsDirectory(nwd.c_str()))
{
- std::cerr << "Changing directory into " << nwd.c_str() << "\n";
cmSystemTools::ChangeDirectory(nwd.c_str());
this->ProcessDirectory(passed, failed);
}
@@ -181,6 +182,12 @@ void ctest::ProcessDirectory(int &passed, std::vector<std::string> &failed)
{
continue;
}
+ if (firstTest)
+ {
+ std::string nwd = cmSystemTools::GetCurrentWorkingDirectory();
+ std::cerr << "Changing directory into " << nwd.c_str() << "\n";
+ firstTest = 0;
+ }
fprintf(stderr,"Testing %-30s ",args[0].c_str());
fflush(stderr);
//std::cerr << "Testing " << args[0] << " ... ";