Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 54f57baa authored by Paul Elder's avatar Paul Elder Committed by Shuah Khan
Browse files

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
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -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);
}