summaryrefslogtreecommitdiffstats
path: root/Source/CTest
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2007-03-28 15:07:36 (GMT)
committerKen Martin <ken.martin@kitware.com>2007-03-28 15:07:36 (GMT)
commitfabd9def6864aa461055e10002a7fc45c5ce85d7 (patch)
treec7cdd3c801df773c9ade0b8fe535a10f39f40a66 /Source/CTest
parentf0857fcbd32632731a1a7430463a897befc9844e (diff)
downloadCMake-fabd9def6864aa461055e10002a7fc45c5ce85d7.zip
CMake-fabd9def6864aa461055e10002a7fc45c5ce85d7.tar.gz
CMake-fabd9def6864aa461055e10002a7fc45c5ce85d7.tar.bz2
BUG: even safer checking of return value
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)
{