summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestTestHandler.cxx
diff options
context:
space:
mode:
authorRolf Eike Beer <eike@sf-mail.de>2012-09-21 15:37:08 (GMT)
committerRolf Eike Beer <kde@opensource.sf-tec.de>2014-01-14 22:57:40 (GMT)
commit3a0d164bb2fa03966cdd7a17c0ce63b4d54f05b7 (patch)
tree859a1201b9ef9d4919b5ef86ff837ecfc1f5c587 /Source/CTest/cmCTestTestHandler.cxx
parent31e1c39c57d61c208443973b38a4eb6f7f7d187f (diff)
downloadCMake-3a0d164bb2fa03966cdd7a17c0ce63b4d54f05b7.zip
CMake-3a0d164bb2fa03966cdd7a17c0ce63b4d54f05b7.tar.gz
CMake-3a0d164bb2fa03966cdd7a17c0ce63b4d54f05b7.tar.bz2
allow to mark a test as "Not Run" with a specific return code (#8466)
Diffstat (limited to 'Source/CTest/cmCTestTestHandler.cxx')
-rw-r--r--Source/CTest/cmCTestTestHandler.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/CTest/cmCTestTestHandler.cxx b/Source/CTest/cmCTestTestHandler.cxx
index 26f8014..3a04b33 100644
--- a/Source/CTest/cmCTestTestHandler.cxx
+++ b/Source/CTest/cmCTestTestHandler.cxx
@@ -2229,6 +2229,14 @@ bool cmCTestTestHandler::SetTestsProperties(
rtit->Processors = 1;
}
}
+ if ( key == "SKIP_RETURN_CODE" )
+ {
+ rtit->SkipReturnCode = atoi(val.c_str());
+ if(rtit->SkipReturnCode < 0 || rtit->SkipReturnCode > 255)
+ {
+ rtit->SkipReturnCode = -1;
+ }
+ }
if ( key == "DEPENDS" )
{
std::vector<std::string> lval;
@@ -2364,6 +2372,7 @@ bool cmCTestTestHandler::AddTest(const std::vector<std::string>& args)
test.ExplicitTimeout = false;
test.Cost = 0;
test.Processors = 1;
+ test.SkipReturnCode = -1;
test.PreviousRuns = 0;
if (this->UseIncludeRegExpFlag &&
!this->IncludeTestsRegularExpression.find(testname.c_str()))