summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-12-17 19:54:14 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2014-12-17 19:54:14 (GMT)
commit9c7c6e434a1483ad5a188136a1cfb7bbf9cf5d61 (patch)
treec8c07413b2f8acec4cded43155280c78bdefcde0 /Source
parent70ffd71db1dff3973f93edb9a6120cec0023f89f (diff)
parent1c8129795ac482b36a67d0b7131f2bbd6ad04a54 (diff)
downloadCMake-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
Diffstat (limited to 'Source')
-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());