Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1717692
| From | Shuah Khan <shuahkh@osg.samsung.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] selftests: kselftest framework: change skip exit code to 0 |
| Date | 2017-08-22 21:20 +0200 |
| Message-ID | <uhmSv-6HP-39@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
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>
---
tools/testing/selftests/kselftest.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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 {
--
2.11.0
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH] selftests: kselftest framework: change skip exit code to 0 Shuah Khan <shuahkh@osg.samsung.com> - 2017-08-22 21:20 +0200 [PATCH] selftests: lib.mk: suppress "cd" output from run_tests target Shuah Khan <shuahkh@osg.samsung.com> - 2017-08-22 21:20 +0200 [PATCH] selftests: timers: suppress "cd" output from run_destructive_tests target Shuah Khan <shuahkh@osg.samsung.com> - 2017-08-22 21:20 +0200
csiph-web