1 /* SPDX-License-Identifier: GPL-2.0 */
3 * KUnit API allowing dynamic analysis tools to interact with KUnit tests
5 * Copyright (C) 2020, Google LLC.
6 * Author: Uriel Guajardo <urielguajardo@google.com>
9 #ifndef _KUNIT_TEST_BUG_H
10 #define _KUNIT_TEST_BUG_H
12 #define kunit_fail_current_test(fmt, ...) \
13 __kunit_fail_current_test(__FILE__, __LINE__, fmt, ##__VA_ARGS__)
15 #if IS_BUILTIN(CONFIG_KUNIT)
17 extern __printf(3, 4) void __kunit_fail_current_test(const char *file, int line,
18 const char *fmt, ...);
22 static inline __printf(3, 4) void __kunit_fail_current_test(const char *file, int line,
29 #endif /* _KUNIT_TEST_BUG_H */