浏览代码

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>
Shuah Khan 8 年之前
父节点
当前提交
11867a77eb
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      tools/testing/selftests/kselftest.h

+ 2 - 1
tools/testing/selftests/kselftest.h

@@ -19,7 +19,8 @@
 #define KSFT_FAIL  1
 #define KSFT_FAIL  1
 #define KSFT_XFAIL 2
 #define KSFT_XFAIL 2
 #define KSFT_XPASS 3
 #define KSFT_XPASS 3
-#define KSFT_SKIP  4
+/* Treat skip as pass */
+#define KSFT_SKIP  KSFT_PASS
 
 
 /* counters */
 /* counters */
 struct ksft_count {
 struct ksft_count {