summaryrefslogtreecommitdiff
path: root/Source/CTest/cmCTestRunTest.cxx
diff options
context:
space:
mode:
authorRolf Eike Beer <eike@sf-mail.de>2012-09-21 17:37:08 +0200
committerRolf Eike Beer <kde@opensource.sf-tec.de>2014-01-14 23:57:40 +0100
commit3a0d164bb2fa03966cdd7a17c0ce63b4d54f05b7 (patch)
tree859a1201b9ef9d4919b5ef86ff837ecfc1f5c587 /Source/CTest/cmCTestRunTest.cxx
parent31e1c39c57d61c208443973b38a4eb6f7f7d187f (diff)
downloadcmake-3a0d164bb2fa03966cdd7a17c0ce63b4d54f05b7.tar.gz
allow to mark a test as "Not Run" with a specific return code (#8466)
Diffstat (limited to 'Source/CTest/cmCTestRunTest.cxx')
-rw-r--r--Source/CTest/cmCTestRunTest.cxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/Source/CTest/cmCTestRunTest.cxx b/Source/CTest/cmCTestRunTest.cxx
index 0e2fa41b9e..cdf90b9af2 100644
--- a/Source/CTest/cmCTestRunTest.cxx
+++ b/Source/CTest/cmCTestRunTest.cxx
@@ -206,7 +206,13 @@ bool cmCTestRunTest::EndTest(size_t completed, size_t total, bool started)
bool success =
!forceFail && (retVal == 0 ||
this->TestProperties->RequiredRegularExpressions.size());
- if((success && !this->TestProperties->WillFail)
+ if(this->TestProperties->SkipReturnCode >= 0
+ && this->TestProperties->SkipReturnCode == retVal)
+ {
+ this->TestResult.Status = cmCTestTestHandler::NOT_RUN;
+ cmCTestLog(this->CTest, HANDLER_OUTPUT, "***Skipped ");
+ }
+ else if((success && !this->TestProperties->WillFail)
|| (!success && this->TestProperties->WillFail))
{
this->TestResult.Status = cmCTestTestHandler::COMPLETED;