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: Paul Elder <paul.elder@pitt.edu>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
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);
}