From be15d66e37d000993833a1e5a614ec969c86f7c8 Mon Sep 17 00:00:00 2001 From: Ken Martin Date: Tue, 2 Dec 2003 16:50:37 -0500 Subject: better error handling --- Source/cmCTest.cxx | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx index 9b4dcc0..a411d97 100644 --- a/Source/cmCTest.cxx +++ b/Source/cmCTest.cxx @@ -2632,6 +2632,11 @@ int cmCTest::RunConfigurationScript() res = cmSystemTools::RunSingleCommand(command.c_str(), &output, &retVal, binDir, m_Verbose, 0 /*m_TimeOut*/); + if (!res || retVal != 0) + { + cmSystemTools::Error("Unable to perform cvs update"); + return -5; + } } // put the initial cache into the bin dir @@ -2660,6 +2665,11 @@ int cmCTest::RunConfigurationScript() res = cmSystemTools::RunSingleCommand(command.c_str(), &output, &retVal, binDir, m_Verbose, 0 /*m_TimeOut*/); + if (!res || retVal != 0) + { + cmSystemTools::Error("Unable to run cmake"); + return -6; + } } // run ctest @@ -2669,6 +2679,11 @@ int cmCTest::RunConfigurationScript() res = cmSystemTools::RunSingleCommand(command.c_str(), &output, &retVal, binDir, m_Verbose, 0 /*m_TimeOut*/); + if (!res || retVal != 0) + { + cmSystemTools::Error("Unable to run ctest"); + return -6; + } return 0; } -- cgit v0.12