summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2007-08-03 20:44:57 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2007-08-03 20:44:57 (GMT)
commit65ae576c014197cf45c22f98218111c7be89d72e (patch)
tree459b919dcdbf54f5eed977e42db40a7e9e03cf27 /Source
parente8f3b5ff005a545bb2d11f748fa5646e68402649 (diff)
downloadCMake-65ae576c014197cf45c22f98218111c7be89d72e.zip
CMake-65ae576c014197cf45c22f98218111c7be89d72e.tar.gz
CMake-65ae576c014197cf45c22f98218111c7be89d72e.tar.bz2
ENH: make sure there is an error and notify user if nightly start time not set
Diffstat (limited to 'Source')
-rw-r--r--Source/CTest/cmCTestGenericHandler.cxx11
1 files changed, 10 insertions, 1 deletions
diff --git a/Source/CTest/cmCTestGenericHandler.cxx b/Source/CTest/cmCTestGenericHandler.cxx
index 4ce1d5b..356cf74 100644
--- a/Source/CTest/cmCTestGenericHandler.cxx
+++ b/Source/CTest/cmCTestGenericHandler.cxx
@@ -16,6 +16,7 @@
=========================================================================*/
#include "cmCTestGenericHandler.h"
+#include "cmSystemTools.h"
#include "cmCTest.h"
@@ -118,7 +119,15 @@ bool cmCTestGenericHandler::StartResultingXML(const char* name,
{
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(),
ostr.str().c_str(), xofs, true) )
{