less noisy about changing directories
This commit is contained in:
parent
cd91e58054
commit
543b4ca1b9
|
@ -132,6 +132,8 @@ void ctest::ProcessDirectory(int &passed, std::vector<std::string> &failed)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int firstTest = 1;
|
||||||
|
|
||||||
std::string name;
|
std::string name;
|
||||||
std::vector<std::string> args;
|
std::vector<std::string> args;
|
||||||
cmRegularExpression ireg(this->m_IncludeRegExp.c_str());
|
cmRegularExpression ireg(this->m_IncludeRegExp.c_str());
|
||||||
|
@ -154,7 +156,6 @@ void ctest::ProcessDirectory(int &passed, std::vector<std::string> &failed)
|
||||||
nwd += *j;
|
nwd += *j;
|
||||||
if (cmSystemTools::FileIsDirectory(nwd.c_str()))
|
if (cmSystemTools::FileIsDirectory(nwd.c_str()))
|
||||||
{
|
{
|
||||||
std::cerr << "Changing directory into " << nwd.c_str() << "\n";
|
|
||||||
cmSystemTools::ChangeDirectory(nwd.c_str());
|
cmSystemTools::ChangeDirectory(nwd.c_str());
|
||||||
this->ProcessDirectory(passed, failed);
|
this->ProcessDirectory(passed, failed);
|
||||||
}
|
}
|
||||||
|
@ -181,6 +182,12 @@ void ctest::ProcessDirectory(int &passed, std::vector<std::string> &failed)
|
||||||
{
|
{
|
||||||
continue;
|
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());
|
fprintf(stderr,"Testing %-30s ",args[0].c_str());
|
||||||
fflush(stderr);
|
fflush(stderr);
|
||||||
//std::cerr << "Testing " << args[0] << " ... ";
|
//std::cerr << "Testing " << args[0] << " ... ";
|
||||||
|
|
Loading…
Reference in New Issue