summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmProcess.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2010-06-22 13:55:09 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2010-06-22 13:55:09 (GMT)
commit8f8c1edca2f577e2fc0507186c033cdfd2b28d4f (patch)
tree949e7bc0bfb58df40e64a1fb37a778af854a0d2a /Source/CTest/cmProcess.cxx
parentd7770578d124bad230690f5c5963ee5517279acc (diff)
downloadCMake-8f8c1edca2f577e2fc0507186c033cdfd2b28d4f.zip
CMake-8f8c1edca2f577e2fc0507186c033cdfd2b28d4f.tar.gz
CMake-8f8c1edca2f577e2fc0507186c033cdfd2b28d4f.tar.bz2
Fix for bug #10859, ctest exit exception incorrectly reported.
CTest was using the return value from the program instead of the exit exception value for the process.
Diffstat (limited to 'Source/CTest/cmProcess.cxx')
-rw-r--r--Source/CTest/cmProcess.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/CTest/cmProcess.cxx b/Source/CTest/cmProcess.cxx
index 9aa40d6..0ee631f 100644
--- a/Source/CTest/cmProcess.cxx
+++ b/Source/CTest/cmProcess.cxx
@@ -264,3 +264,9 @@ int cmProcess::ReportStatus()
return result;
}
+
+
+int cmProcess::GetExitException()
+{
+ return cmsysProcess_GetExitException(this->Process);
+}