Do not try to run bullseye coverage if COVFILE env is empty.

This commit is contained in:
Bill Hoffman 2012-05-08 14:47:13 -04:00
parent 5b69ce49d4
commit 761d93129f
1 changed files with 1 additions and 1 deletions

View File

@ -1825,7 +1825,7 @@ int cmCTestCoverageHandler::HandleBullseyeCoverage(
cmCTestCoverageHandlerContainer* cont)
{
const char* covfile = cmSystemTools::GetEnv("COVFILE");
if(!covfile)
if(!covfile || strlen(covfile) == 0)
{
cmCTestLog(this->CTest, HANDLER_VERBOSE_OUTPUT,
" COVFILE environment variable not found, not running "