Commit 65ae576c authored by Bill Hoffman's avatar Bill Hoffman
Browse files

ENH: make sure there is an error and notify user if nightly start time not set

parent e8f3b5ff
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
=========================================================================*/ =========================================================================*/
#include "cmCTestGenericHandler.h" #include "cmCTestGenericHandler.h"
#include "cmSystemTools.h"
#include "cmCTest.h" #include "cmCTest.h"
...@@ -118,7 +119,15 @@ bool cmCTestGenericHandler::StartResultingXML(const char* name, ...@@ -118,7 +119,15 @@ bool cmCTestGenericHandler::StartResultingXML(const char* name,
{ {
ostr << "_" << this->SubmitIndex; ostr << "_" << this->SubmitIndex;
} }
ostr << ".xml"; ostr << ".xml";
if(this->CTest->GetCurrentTag().empty())
{
cmCTestLog(this->CTest, ERROR_MESSAGE,
"Current Tag empty, this may mean"
" NightlStartTime was not set correctly." << std::endl);
cmSystemTools::SetFatalErrorOccured();
return false;
}
if( !this->CTest->OpenOutputFile(this->CTest->GetCurrentTag(), if( !this->CTest->OpenOutputFile(this->CTest->GetCurrentTag(),
ostr.str().c_str(), xofs, true) ) ostr.str().c_str(), xofs, true) )
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment