Loading...
Note: File does not exist in v3.5.6.
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef __LIBPERF_INTERNAL_TESTS_H
3#define __LIBPERF_INTERNAL_TESTS_H
4
5#include <stdio.h>
6
7#define __T_START fprintf(stdout, "- running %s...", __FILE__)
8#define __T_OK fprintf(stdout, "OK\n")
9#define __T_FAIL fprintf(stdout, "FAIL\n")
10
11#define __T(text, cond) \
12do { \
13 if (!(cond)) { \
14 fprintf(stderr, "FAILED %s:%d %s\n", __FILE__, __LINE__, text); \
15 return -1; \
16 } \
17} while (0)
18
19#endif /* __LIBPERF_INTERNAL_TESTS_H */