kselftest.h (b0df366bbd701c45e93af0dcb87ce22398589d1d) kselftest.h (5c069b6dedef1fab5420ca8658ed7f9ee4d26007)
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * kselftest.h: kselftest framework return codes to include from
4 * selftests.
5 *
6 * Copyright (c) 2014 Shuah Khan <shuahkh@osg.samsung.com>
7 * Copyright (c) 2014 Samsung Electronics Co., Ltd.
8 *

--- 49 unchanged lines hidden (view full) ---

58static inline void ksft_print_header(void)
59{
60 if (!(getenv("KSFT_TAP_LEVEL")))
61 printf("TAP version 13\n");
62}
63
64static inline void ksft_print_cnts(void)
65{
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * kselftest.h: kselftest framework return codes to include from
4 * selftests.
5 *
6 * Copyright (c) 2014 Shuah Khan <shuahkh@osg.samsung.com>
7 * Copyright (c) 2014 Samsung Electronics Co., Ltd.
8 *

--- 49 unchanged lines hidden (view full) ---

58static inline void ksft_print_header(void)
59{
60 if (!(getenv("KSFT_TAP_LEVEL")))
61 printf("TAP version 13\n");
62}
63
64static inline void ksft_print_cnts(void)
65{
66 printf("Pass %d Fail %d Xfail %d Xpass %d Skip %d Error %d\n",
66 printf("# Pass %d Fail %d Xfail %d Xpass %d Skip %d Error %d\n",
67 ksft_cnt.ksft_pass, ksft_cnt.ksft_fail,
68 ksft_cnt.ksft_xfail, ksft_cnt.ksft_xpass,
69 ksft_cnt.ksft_xskip, ksft_cnt.ksft_error);
70 printf("1..%d\n", ksft_test_num());
71}
72
73static inline void ksft_print_msg(const char *msg, ...)
74{

--- 110 unchanged lines hidden ---
67 ksft_cnt.ksft_pass, ksft_cnt.ksft_fail,
68 ksft_cnt.ksft_xfail, ksft_cnt.ksft_xpass,
69 ksft_cnt.ksft_xskip, ksft_cnt.ksft_error);
70 printf("1..%d\n", ksft_test_num());
71}
72
73static inline void ksft_print_msg(const char *msg, ...)
74{

--- 110 unchanged lines hidden ---