Просмотр исходного кода

BUG: Even if update fails it should produce valid XML

Andy Cedilnik 21 лет назад
Родитель
Сommit
699a6cfe38
1 измененных файлов с 8 добавлено и 8 удалено
  1. 8 8
      Source/cmCTest.cxx

+ 8 - 8
Source/cmCTest.cxx

@@ -991,16 +991,16 @@ int cmCTest::UpdateDirectory()
         }
       os << "\t</Author>" << std::endl;
       }
+    }
 
-    //std::cout << "End" << std::endl;
-    std::string end_time = ::CurrentTime();
-    os << "\t<EndDateTime>" << end_time << "</EndDateTime>\n"
-      << "</Update>" << std::endl;
+  //std::cout << "End" << std::endl;
+  std::string end_time = ::CurrentTime();
+  os << "\t<EndDateTime>" << end_time << "</EndDateTime>\n"
+    << "</Update>" << std::endl;
 
-    if ( ofs )
-      {
-      ofs.close();
-      }
+  if ( ofs )
+    {
+    ofs.close();
     }
 
   if (! res || retVal )