summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/testProcess.c
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2004-01-28 15:59:22 (GMT)
committerBrad King <brad.king@kitware.com>2004-01-28 15:59:22 (GMT)
commite27ad7eb97d728791190050463af8a31cf9b0e5f (patch)
treee2ec22e8044f940cc438248990dec29e0e7b72c9 /Source/kwsys/testProcess.c
parent305e972df37c87744503c5b97add89256c2978d1 (diff)
downloadCMake-e27ad7eb97d728791190050463af8a31cf9b0e5f.zip
CMake-e27ad7eb97d728791190050463af8a31cf9b0e5f.tar.gz
CMake-e27ad7eb97d728791190050463af8a31cf9b0e5f.tar.bz2
ENH: Added exception string to abnormal termination report.
Diffstat (limited to 'Source/kwsys/testProcess.c')
-rw-r--r--Source/kwsys/testProcess.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/kwsys/testProcess.c b/Source/kwsys/testProcess.c
index 3e8dd2b..44b0db8 100644
--- a/Source/kwsys/testProcess.c
+++ b/Source/kwsys/testProcess.c
@@ -142,7 +142,8 @@ int runChild(const char* cmd[], int state, int exception, int value,
case kwsysProcess_State_Killed:
printf("Child was killed by parent.\n"); break;
case kwsysProcess_State_Exception:
- printf("Child terminated abnormally.\n");
+ printf("Child terminated abnormally: %s\n",
+ kwsysProcess_GetExceptionString(kp));
result = ((exception != kwsysProcess_GetExitException(kp)) ||
(value != kwsysProcess_GetExitValue(kp))); break;
case kwsysProcess_State_Error: