From 6d69fc44d8fbfdf484adbb984dcefc8c1aab6cb6 Mon Sep 17 00:00:00 2001
From: Brad King <brad.king@kitware.com>
Date: Wed, 28 Jan 2004 10:59:22 -0500
Subject: [PATCH] ENH: Added exception string to abnormal termination report.

---
 testProcess.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/testProcess.c b/testProcess.c
index 1c455bd..08ec9bf 100644
--- a/testProcess.c
+++ b/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:
-- 
GitLab