summaryrefslogtreecommitdiffstats
path: root/Source/CTest
diff options
context:
space:
mode:
Diffstat (limited to 'Source/CTest')
-rw-r--r--Source/CTest/cmCTestBuildHandler.cxx15
1 files changed, 8 insertions, 7 deletions
diff --git a/Source/CTest/cmCTestBuildHandler.cxx b/Source/CTest/cmCTestBuildHandler.cxx
index 52945bb..1240cbf 100644
--- a/Source/CTest/cmCTestBuildHandler.cxx
+++ b/Source/CTest/cmCTestBuildHandler.cxx
@@ -713,14 +713,15 @@ int cmCTestBuildHandler::RunMakeCommand(const char* command,
this->TotalWarnings ++;
}
}
- else if(result == cmsysProcess_State_Exception)
+ }
+ else if(result == cmsysProcess_State_Exception)
+ {
+ if (retVal)
{
- if (retVal)
- {
- *retVal = cmsysProcess_GetExitException(cp);
- cmCTestLog(this->CTest, WARNING, "There was an exception: " << *retVal
- << std::endl);
- }
+ *retVal = cmsysProcess_GetExitException(cp);
+ cmCTestLog(this->CTest, WARNING, "There was an exception: " << *retVal
+ << std::endl);
+ }
}
else if(result == cmsysProcess_State_Expired)
{