diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2007-08-03 16:44:57 -0400 |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2007-08-03 16:44:57 -0400 |
commit | 65ae576c014197cf45c22f98218111c7be89d72e (patch) | |
tree | 459b919dcdbf54f5eed977e42db40a7e9e03cf27 /Source/CTest/cmCTestGenericHandler.cxx | |
parent | e8f3b5ff005a545bb2d11f748fa5646e68402649 (diff) | |
download | cmake-65ae576c014197cf45c22f98218111c7be89d72e.tar.gz |
ENH: make sure there is an error and notify user if nightly start time not set
Diffstat (limited to 'Source/CTest/cmCTestGenericHandler.cxx')
-rw-r--r-- | Source/CTest/cmCTestGenericHandler.cxx | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/Source/CTest/cmCTestGenericHandler.cxx b/Source/CTest/cmCTestGenericHandler.cxx index 4ce1d5beff..356cf74a0e 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) ) { |