@@ -1070,7 +1070,7 @@ int cmCTest::RunTest(std::vector<const char*> argv,
}
cmsysProcess_WaitForExit(cp, 0);
- if(output)
+ if(output && tempOutput.begin() != tempOutput.end())
{
output->append(&*tempOutput.begin(), tempOutput.size());
@@ -507,7 +507,7 @@ bool cmSystemTools::RunSingleCommand(
- if ( output )
+ if ( output && tempOutput.begin() != tempOutput.end())