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

1c812979 ctest_memcheck: Do not open empty BC output file name
This commit is contained in:
Brad King 2014-12-17 14:54:14 -05:00 committed by CMake Topic Stage
commit 9c7c6e434a
1 changed files with 4 additions and 0 deletions

View File

@ -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());