summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2003-12-02 21:50:37 (GMT)
committerKen Martin <ken.martin@kitware.com>2003-12-02 21:50:37 (GMT)
commitbe15d66e37d000993833a1e5a614ec969c86f7c8 (patch)
treec4703bf8816ce6661f27ff2a254aa4201e96b085
parenta442f1715ee6c3800973fb2b8b21f353fc89a42f (diff)
downloadCMake-be15d66e37d000993833a1e5a614ec969c86f7c8.zip
CMake-be15d66e37d000993833a1e5a614ec969c86f7c8.tar.gz
CMake-be15d66e37d000993833a1e5a614ec969c86f7c8.tar.bz2
better error handling
-rw-r--r--Source/cmCTest.cxx15
1 files changed, 15 insertions, 0 deletions
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;
}