提交 54f57baa 编写于 作者: P Paul Elder 提交者: Shuah Khan

kselftest: make ksft_exit_skip() output a reason for skipping

Make ksft_exit_skip() input an optional message string as the reason
for skipping all the tests and outputs it prior to exiting.
Signed-off-by: NPaul Elder <paul.elder@pitt.edu>
Signed-off-by: NShuah Khan <shuahkh@osg.samsung.com>
上级 48e42f91
...@@ -104,9 +104,12 @@ static inline int ksft_exit_xpass(void) ...@@ -104,9 +104,12 @@ static inline int ksft_exit_xpass(void)
exit(KSFT_XPASS); exit(KSFT_XPASS);
} }
static inline int ksft_exit_skip(void) static inline int ksft_exit_skip(const char *msg)
{ {
ksft_print_cnts(); if (msg)
printf("1..%d # Skipped: %s\n", ksft_test_num(), msg);
else
ksft_print_cnts();
exit(KSFT_SKIP); exit(KSFT_SKIP);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册