1
0
Andy Cedilnik 23 жил өмнө
parent
commit
a5f5f63c27
1 өөрчлөгдсөн 6 нэмэгдсэн , 2 устгасан
  1. 6 2
      Source/cmCTest.cxx

+ 6 - 2
Source/cmCTest.cxx

@@ -472,8 +472,12 @@ int cmCTest::UpdateDirectory()
      << "\t<BuildStamp>" << m_CurrentTag << "-Experimental</BuildStamp>\n"
      << "\t<StartDateTime>" << start_time << "</StartDateTime>\n"
      << "\t<UpdateCommand>" << command << "</UpdateCommand>\n"
-     << "\t<UpdateReturnStatus>" << retVal 
-     << "</UpdateReturnStatus>" << std::endl;
+     << "\t<UpdateReturnStatus>";
+  if ( retVal )
+    {
+    os << retVal;
+    }
+  os << "</UpdateReturnStatus>" << std::endl;
 
   std::vector<cmStdString> lines;
   cmSystemTools::Split(output.c_str(), lines);