-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a way to skip a test #1012
Add a way to skip a test #1012
Conversation
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## main #1012 +/- ##
==========================================
- Coverage 81.97% 81.95% -0.03%
==========================================
Files 52 52
Lines 5569 5568 -1
==========================================
- Hits 4565 4563 -2
- Misses 1004 1005 +1 see 1 file with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
@@ -62,9 +62,24 @@ static int s_cunit_failure_message0( | |||
s_cunit_failure_message0(FAIL_PREFIX, func, file, line, format, #__VA_ARGS__) | |||
|
|||
static int total_failures; | |||
static int total_skip; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The value reserved to record the total skipped tests count. Current not in use.
|
||
#define SUCCESS (0) | ||
#define FAILURE (-1) | ||
#define SKIP (1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The skip code returned to cmake has to be in range [0,255]. Refer to cmake doc: https://cmake.org/cmake/help/latest/prop_test/SKIP_RETURN_CODE.html
Issue #, if available:
Description of changes:
The test case can be skipped if it returned AWS_OP_SKIP.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.