[cmake-commits] hoffman committed cmCTestGenericHandler.cxx 1.14 1.15
cmake-commits at cmake.org
cmake-commits at cmake.org
Fri Aug 3 16:44:59 EDT 2007
Update of /cvsroot/CMake/CMake/Source/CTest
In directory public:/mounts/ram/cvs-serv25686
Modified Files:
cmCTestGenericHandler.cxx
Log Message:
ENH: make sure there is an error and notify user if nightly start time not set
Index: cmCTestGenericHandler.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/CTest/cmCTestGenericHandler.cxx,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- cmCTestGenericHandler.cxx 10 May 2006 17:48:21 -0000 1.14
+++ cmCTestGenericHandler.cxx 3 Aug 2007 20:44:57 -0000 1.15
@@ -16,6 +16,7 @@
=========================================================================*/
#include "cmCTestGenericHandler.h"
+#include "cmSystemTools.h"
#include "cmCTest.h"
@@ -118,7 +119,15 @@
{
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) )
{
More information about the Cmake-commits
mailing list