summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2003-02-07 16:03:00 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2003-02-07 16:03:00 (GMT)
commita5f5f63c273163dd7a8aef5fb879cb140e749634 (patch)
tree611c3772ae7abcb2f882095d0d71ee9555c16d0d
parentbb3f5e7250e616577cc033b239a68b28035394c9 (diff)
downloadCMake-a5f5f63c273163dd7a8aef5fb879cb140e749634.zip
CMake-a5f5f63c273163dd7a8aef5fb879cb140e749634.tar.gz
CMake-a5f5f63c273163dd7a8aef5fb879cb140e749634.tar.bz2
Fix update return status
-rw-r--r--Source/cmCTest.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx
index 150fdf5..e3571b1 100644
--- a/Source/cmCTest.cxx
+++ b/Source/cmCTest.cxx
@@ -472,8 +472,12 @@ int cmCTest::UpdateDirectory()
<< "\t<BuildStamp>" << m_CurrentTag << "-Experimental</BuildStamp>\n"
<< "\t<StartDateTime>" << start_time << "</StartDateTime>\n"
<< "\t<UpdateCommand>" << command << "</UpdateCommand>\n"
- << "\t<UpdateReturnStatus>" << retVal
- << "</UpdateReturnStatus>" << std::endl;
+ << "\t<UpdateReturnStatus>";
+ if ( retVal )
+ {
+ os << retVal;
+ }
+ os << "</UpdateReturnStatus>" << std::endl;
std::vector<cmStdString> lines;
cmSystemTools::Split(output.c_str(), lines);