Commit 54f57baa authored by Paul Elder's avatar Paul Elder Committed by 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: default avatarPaul Elder <paul.elder@pitt.edu>
Signed-off-by: default avatarShuah Khan <shuahkh@osg.samsung.com>
parent 48e42f91
......@@ -104,8 +104,11 @@ static inline int ksft_exit_xpass(void)
exit(KSFT_XPASS);
}
static inline int ksft_exit_skip(void)
static inline int ksft_exit_skip(const char *msg)
{
if (msg)
printf("1..%d # Skipped: %s\n", ksft_test_num(), msg);
else
ksft_print_cnts();
exit(KSFT_SKIP);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment