projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f14e26
)
selftests: kselftest framework: change skip exit code to 0
author
Shuah Khan
<shuahkh@osg.samsung.com>
Sat, 19 Aug 2017 02:51:05 +0000
(20:51 -0600)
committer
Shuah Khan
<shuahkh@osg.samsung.com>
Fri, 25 Aug 2017 16:02:00 +0000
(10:02 -0600)
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
patch
|
blob
|
history
diff --git
a/tools/testing/selftests/kselftest.h
b/tools/testing/selftests/kselftest.h
index e2714d0a14524751ca648adc6e60f68b3e8f4f94..1ae565ed9bf0aad1ba6ac887e267fca734735bd8 100644
(file)
--- 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 {