diff options
author | Brad King <brad.king@kitware.com> | 2014-12-16 18:47:35 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-12-16 18:49:38 (GMT) |
commit | 1c8129795ac482b36a67d0b7131f2bbd6ad04a54 (patch) | |
tree | 5832b69cbdb9c05cf9db94054b3b43b79684f5a3 /Source/CTest | |
parent | 29533380ea887e3f5eab44260bbd77933cf91ca9 (diff) | |
download | CMake-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.cxx | 4 |
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()); |