summaryrefslogtreecommitdiffstats
path: root/Source/cmCTest.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2006-03-21 21:01:50 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2006-03-21 21:01:50 (GMT)
commit1cdd8b4fbd39abfa162b36d6f49643a4dceef1fd (patch)
treeb1af9117142985301e4d1d70f65d75cd16135d06 /Source/cmCTest.cxx
parent6690a252ab6e61d8c09d1dcf502c2878b6f796f5 (diff)
downloadCMake-1cdd8b4fbd39abfa162b36d6f49643a4dceef1fd.zip
CMake-1cdd8b4fbd39abfa162b36d6f49643a4dceef1fd.tar.gz
CMake-1cdd8b4fbd39abfa162b36d6f49643a4dceef1fd.tar.bz2
BUG: Handle visual studio 8
Diffstat (limited to 'Source/cmCTest.cxx')
-rw-r--r--Source/cmCTest.cxx16
1 files changed, 12 insertions, 4 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx
index ee40dff..4e941af 100644
--- a/Source/cmCTest.cxx
+++ b/Source/cmCTest.cxx
@@ -257,7 +257,8 @@ cmCTest::cmCTest()
this->TestingHandlers["submit"] = new cmCTestSubmitHandler;
cmCTest::t_TestingHandlers::iterator it;
- for ( it = this->TestingHandlers.begin(); it != this->TestingHandlers.end(); ++ it )
+ for ( it = this->TestingHandlers.begin();
+ it != this->TestingHandlers.end(); ++ it )
{
it->second->SetCTestInstance(this);
}
@@ -270,7 +271,8 @@ cmCTest::cmCTest()
cmCTest::~cmCTest()
{
cmCTest::t_TestingHandlers::iterator it;
- for ( it = this->TestingHandlers.begin(); it != this->TestingHandlers.end(); ++ it )
+ for ( it = this->TestingHandlers.begin();
+ it != this->TestingHandlers.end(); ++ it )
{
delete it->second;
it->second = 0;
@@ -2168,8 +2170,14 @@ bool cmCTest::RunCommand(
}
cmsysProcess_WaitForExit(cp, 0);
- stdOut->append(&*tempOutput.begin(), tempOutput.size());
- stdErr->append(&*tempError.begin(), tempError.size());
+ if ( tempOutput.size() > 0 )
+ {
+ stdOut->append(&*tempOutput.begin(), tempOutput.size());
+ }
+ if ( tempError.size() > 0 )
+ {
+ stdErr->append(&*tempError.begin(), tempError.size());
+ }
bool result = true;
if(cmsysProcess_GetState(cp) == cmsysProcess_State_Exited)