summaryrefslogtreecommitdiffstats
path: root/Source/CTest
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-12-16 18:47:35 (GMT)
committerBrad King <brad.king@kitware.com>2014-12-16 18:49:38 (GMT)
commit1c8129795ac482b36a67d0b7131f2bbd6ad04a54 (patch)
tree5832b69cbdb9c05cf9db94054b3b43b79684f5a3 /Source/CTest
parent29533380ea887e3f5eab44260bbd77933cf91ca9 (diff)
downloadCMake-1c8129795ac482b36a67d0b7131f2bbd6ad04a54.zip
CMake-1c8129795ac482b36a67d0b7131f2bbd6ad04a54.tar.gz
CMake-1c8129795ac482b36a67d0b7131f2bbd6ad04a54.tar.bz2
ctest_memcheck: Do not open empty BC output file name
In cmCTestMemCheckHandler::PostProcessBoundsCheckerTest return early if the output file name is empty. We already do this in the similar cmCTestMemCheckHandler::AppendMemTesterOutput method.
Diffstat (limited to 'Source/CTest')
-rw-r--r--Source/CTest/cmCTestMemCheckHandler.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/CTest/cmCTestMemCheckHandler.cxx b/Source/CTest/cmCTestMemCheckHandler.cxx
index 089e84b..09cf760 100644
--- a/Source/CTest/cmCTestMemCheckHandler.cxx
+++ b/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());