diff options
author | Brad King <brad.king@kitware.com> | 2014-12-17 19:54:14 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2014-12-17 19:54:14 (GMT) |
commit | 9c7c6e434a1483ad5a188136a1cfb7bbf9cf5d61 (patch) | |
tree | c8c07413b2f8acec4cded43155280c78bdefcde0 | |
parent | 70ffd71db1dff3973f93edb9a6120cec0023f89f (diff) | |
parent | 1c8129795ac482b36a67d0b7131f2bbd6ad04a54 (diff) | |
download | CMake-9c7c6e434a1483ad5a188136a1cfb7bbf9cf5d61.zip CMake-9c7c6e434a1483ad5a188136a1cfb7bbf9cf5d61.tar.gz CMake-9c7c6e434a1483ad5a188136a1cfb7bbf9cf5d61.tar.bz2 |
Merge topic 'ctest_memcheck-no-empty-BC-output'
1c812979 ctest_memcheck: Do not open empty BC output file name
-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()); |