Skip to content

Commit

Permalink
selftests: kselftest framework: change skip exit code to 0
Browse files Browse the repository at this point in the history
When a test is skipped, instead of using a special exit code of 4, treat
it as pass condition and use exit code of 0. It makes sense to treat skip
as pass since the test couldn't be run as opposed to a failed test.

Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
  • Loading branch information
Shuah Khan committed Aug 25, 2017
1 parent 8f14e26 commit 11867a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/testing/selftests/kselftest.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
#define KSFT_FAIL 1
#define KSFT_XFAIL 2
#define KSFT_XPASS 3
#define KSFT_SKIP 4
/* Treat skip as pass */
#define KSFT_SKIP KSFT_PASS

/* counters */
struct ksft_count {
Expand Down

0 comments on commit 11867a7

Please sign in to comment.