BUG: Report errors
This commit is contained in:
parent
a8c74a6b57
commit
ae63ae6a6e
|
@ -27,7 +27,11 @@ bool cmCTestEmptyBinaryDirectoryCommand::InitialPass(
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
cmCTestScriptHandler::EmptyBinaryDirectory(args[0].c_str());
|
if ( !cmCTestScriptHandler::EmptyBinaryDirectory(args[0].c_str()) )
|
||||||
|
{
|
||||||
|
this->SetError("problem removing the binary directory");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -574,7 +574,10 @@ int cmCTestScriptHandler::RunConfigurationDashboard()
|
||||||
// clear the binary directory?
|
// clear the binary directory?
|
||||||
if (m_EmptyBinDir)
|
if (m_EmptyBinDir)
|
||||||
{
|
{
|
||||||
cmCTestScriptHandler::EmptyBinaryDirectory(m_BinaryDir.c_str());
|
if ( !cmCTestScriptHandler::EmptyBinaryDirectory(m_BinaryDir.c_str()) )
|
||||||
|
{
|
||||||
|
std::cerr << "Problem removing the binary directory" << std::endl;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// make sure the binary directory exists if it isn't the srcdir
|
// make sure the binary directory exists if it isn't the srcdir
|
||||||
|
|
Loading…
Reference in New Issue