summaryrefslogtreecommitdiffstats
path: root/Source/cmCTest.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2008-11-23 15:49:46 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2008-11-23 15:49:46 (GMT)
commitbdfc3fadd321c6642e37fc074e5ebd4a5f533787 (patch)
treedcb94b8d9e6ab9cbc9a9bb1b76f0cad6398f6981 /Source/cmCTest.cxx
parentb29265a6b97fd02111809ef1713175a7807d1356 (diff)
downloadCMake-bdfc3fadd321c6642e37fc074e5ebd4a5f533787.zip
CMake-bdfc3fadd321c6642e37fc074e5ebd4a5f533787.tar.gz
CMake-bdfc3fadd321c6642e37fc074e5ebd4a5f533787.tar.bz2
ENH: add more debug stuff to CTestCTest2 so I can figure out redwall
Diffstat (limited to 'Source/cmCTest.cxx')
-rw-r--r--Source/cmCTest.cxx16
1 files changed, 16 insertions, 0 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx
index d8d9668..049248e 100644
--- a/Source/cmCTest.cxx
+++ b/Source/cmCTest.cxx
@@ -1981,6 +1981,11 @@ int cmCTest::Run(std::vector<std::string> &args, std::string* output)
#ifdef CMAKE_BUILD_WITH_CMAKE
cmDynamicLoader::FlushCache();
#endif
+ if(retv != 0)
+ {
+ cmCTestLog(this, DEBUG, "build and test failing returing: " << retv
+ << std::endl);
+ }
return retv;
}
@@ -2005,6 +2010,12 @@ int cmCTest::Run(std::vector<std::string> &args, std::string* output)
}
this->GetHandler("script")->SetVerbose(this->Verbose);
res = this->GetHandler("script")->ProcessHandler();
+ if(res != 0)
+ {
+ cmCTestLog(this, DEBUG, "running script failing returing: " << res
+ << std::endl);
+ }
+
}
else
{
@@ -2033,6 +2044,11 @@ int cmCTest::Run(std::vector<std::string> &args, std::string* output)
}
this->Finalize();
}
+ if(res != 0)
+ {
+ cmCTestLog(this, DEBUG, "Running a test(s) failed returning : " << res
+ << std::endl);
+ }
return res;
}