[Cmake-commits] [cmake-commits] david.cole committed cmCTest.cxx 1.387 1.388
cmake-commits at cmake.org
cmake-commits at cmake.org
Tue Dec 29 15:48:16 EST 2009
Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv14932
Modified Files:
cmCTest.cxx
Log Message:
Fix crash on Continuous dashboard - related to last commit fixing issue #10060. Do not call ShouldCreateNewTag if command is NULL...
Index: cmCTest.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmCTest.cxx,v
retrieving revision 1.387
retrieving revision 1.388
diff -C 2 -d -r1.387 -r1.388
*** cmCTest.cxx 29 Dec 2009 19:38:31 -0000 1.387
--- cmCTest.cxx 29 Dec 2009 20:48:14 -0000 1.388
***************
*** 478,486 ****
// Create new "TAG" file or read existing one:
//
std::string tagfile = testingDir + "/TAG";
std::ifstream tfin(tagfile.c_str());
std::string tag;
! if (command->ShouldCreateNewTag())
{
time_t tctime = time(0);
--- 478,492 ----
// Create new "TAG" file or read existing one:
//
+ bool createNewTag = true;
+ if (command)
+ {
+ createNewTag = command->ShouldCreateNewTag();
+ }
+
std::string tagfile = testingDir + "/TAG";
std::ifstream tfin(tagfile.c_str());
std::string tag;
! if (createNewTag)
{
time_t tctime = time(0);
More information about the Cmake-commits
mailing list