diff options
author | Rolf Eike Beer <eike@sf-mail.de> | 2012-09-21 15:37:08 (GMT) |
---|---|---|
committer | Rolf Eike Beer <kde@opensource.sf-tec.de> | 2014-01-14 22:57:40 (GMT) |
commit | 3a0d164bb2fa03966cdd7a17c0ce63b4d54f05b7 (patch) | |
tree | 859a1201b9ef9d4919b5ef86ff837ecfc1f5c587 /Source/CTest/cmCTestTestHandler.cxx | |
parent | 31e1c39c57d61c208443973b38a4eb6f7f7d187f (diff) | |
download | CMake-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.cxx | 9 |
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())) |