diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-02-07 16:03:00 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-02-07 16:03:00 (GMT) |
commit | a5f5f63c273163dd7a8aef5fb879cb140e749634 (patch) | |
tree | 611c3772ae7abcb2f882095d0d71ee9555c16d0d /Source | |
parent | bb3f5e7250e616577cc033b239a68b28035394c9 (diff) | |
download | CMake-a5f5f63c273163dd7a8aef5fb879cb140e749634.zip CMake-a5f5f63c273163dd7a8aef5fb879cb140e749634.tar.gz CMake-a5f5f63c273163dd7a8aef5fb879cb140e749634.tar.bz2 |
Fix update return status
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmCTest.cxx | 8 |
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); |