[cmake-commits] hoffman committed cmCTest.cxx 1.324 1.325

cmake-commits at cmake.org cmake-commits at cmake.org
Fri Aug 3 16:41:51 EDT 2007


Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv25320

Modified Files:
	cmCTest.cxx 
Log Message:
ENH: add a check to make sure nightly start time was specified


Index: cmCTest.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmCTest.cxx,v
retrieving revision 1.324
retrieving revision 1.325
diff -u -d -r1.324 -r1.325
--- cmCTest.cxx	14 Jun 2007 17:05:09 -0000	1.324
+++ cmCTest.cxx	3 Aug 2007 20:41:49 -0000	1.325
@@ -312,7 +312,7 @@
   cmCTestLog(this, DEBUG, "Here: " << __LINE__ << std::endl);
   if ( this->ProduceXML )
     {
-  cmCTestLog(this, DEBUG, "Here: " << __LINE__ << std::endl);
+    cmCTestLog(this, DEBUG, "Here: " << __LINE__ << std::endl);
     cmCTestLog(this, OUTPUT,
       "   Site: " << this->GetCTestConfiguration("Site") << std::endl
       << "   Build name: " << this->GetCTestConfiguration("BuildName")
@@ -320,8 +320,10 @@
     cmCTestLog(this, DEBUG, "Produce XML is on" << std::endl);
     if ( this->GetCTestConfiguration("NightlyStartTime").empty() )
       {
-      cmCTestLog(this, DEBUG, "No nightly start time" << std::endl);
-  cmCTestLog(this, DEBUG, "Here: " << __LINE__ << std::endl);
+      cmCTestLog(this, ERROR_MESSAGE,
+                 "No nightly start time found please set in"
+                 " CTestConfig.cmake or DartConfig.cmake" << std::endl);
+      cmCTestLog(this, DEBUG, "Here: " << __LINE__ << std::endl);
       return 0;
       }
     }
@@ -1217,6 +1219,13 @@
 //----------------------------------------------------------------------
 void cmCTest::StartXML(std::ostream& ostr)
 {
+  if(this->CurrentTag.empty())
+    {
+    cmCTestLog(this, ERROR_MESSAGE,
+               "Current Tag empty, this may mean"
+               " NightlStartTime was not set correctly." << std::endl);
+    cmSystemTools::SetFatalErrorOccured();
+    }
   ostr << "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
     << "<Site BuildName=\"" << this->GetCTestConfiguration("BuildName")
     << "\" BuildStamp=\"" << this->CurrentTag << "-"



More information about the Cmake-commits mailing list