瀏覽代碼

Merge topic 'ctest_memcheck-no-empty-BC-output'

1c812979 ctest_memcheck: Do not open empty BC output file name
Brad King 11 年之前
父節點
當前提交
9c7c6e434a
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      Source/CTest/cmCTestMemCheckHandler.cxx

+ 4 - 0
Source/CTest/cmCTestMemCheckHandler.cxx

@@ -1202,6 +1202,10 @@ cmCTestMemCheckHandler::PostProcessBoundsCheckerTest(cmCTestTestResult& res,
     return;
     }
   std::string ofile = files[0];
+  if ( ofile.empty() )
+    {
+    return;
+    }
   // put a scope around this to close ifs so the file can be removed
   {
   cmsys::ifstream ifs(ofile.c_str());