diff options
author | Shuah Khan <shuahkh@osg.samsung.com> | 2017-08-18 20:51:05 -0600 |
---|---|---|
committer | Shuah Khan <shuahkh@osg.samsung.com> | 2017-08-25 10:02:00 -0600 |
commit | 11867a77eb854248a1e7a1b4e8ba58aadadd7701 (patch) | |
tree | 9be41a22704e0d7148a8395a7258abb57cf57f6d /tools/testing/selftests/kselftest.h | |
parent | 8f14e26b63b1b6c7c681409e9db1bbf054e00b32 (diff) | |
download | linux-rt-11867a77eb854248a1e7a1b4e8ba58aadadd7701.tar.gz |
selftests: kselftest framework: change skip exit code to 0
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>
Diffstat (limited to 'tools/testing/selftests/kselftest.h')
-rw-r--r-- | tools/testing/selftests/kselftest.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/testing/selftests/kselftest.h b/tools/testing/selftests/kselftest.h index e2714d0a1452..1ae565ed9bf0 100644 --- a/tools/testing/selftests/kselftest.h +++ b/tools/testing/selftests/kselftest.h @@ -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 { |