summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2004-01-28 14:47:31 (GMT)
committerKen Martin <ken.martin@kitware.com>2004-01-28 14:47:31 (GMT)
commit305e972df37c87744503c5b97add89256c2978d1 (patch)
tree4058035ca2f90e1383a0600cd01a532a1684a060 /Source
parent4be80e728adfbe3b0b4b8d46a25697dc64d1a3b8 (diff)
downloadCMake-305e972df37c87744503c5b97add89256c2978d1.zip
CMake-305e972df37c87744503c5b97add89256c2978d1.tar.gz
CMake-305e972df37c87744503c5b97add89256c2978d1.tar.bz2
Including exception string in test's error output.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmCTest.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx
index d5ffef9..eafb9fa 100644
--- a/Source/cmCTest.cxx
+++ b/Source/cmCTest.cxx
@@ -3000,6 +3000,14 @@ int cmCTest::RunTest(std::vector<const char*> argv, std::string* output, int *re
else if(result == cmsysProcess_State_Exception)
{
*retVal = cmsysProcess_GetExitException(cp);
+ std::string outerr = "\n*** Exception executing: ";
+ outerr += cmsysProcess_GetExceptionString(cp);
+ *output += outerr;
+ if ( m_Verbose )
+ {
+ std::cout << outerr.c_str() << "\n";
+ std::cout.flush();
+ }
}
else if(result == cmsysProcess_State_Error)
{