mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-22 10:34:55 +08:00
e51767279f
The idea is to split test implementations in different compilation units, but have one single place where we define the list of tests, in this case(drm_modeset_selftests.h). Signed-off-by: Alexandru Gheorghe <alexandru-cosmin.gheorghe@arm.com> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: https://patchwork.freedesktop.org/patch/msgid/20181019105752.17741-9-alexandru-cosmin.gheorghe@arm.com
19 lines
399 B
C
19 lines
399 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
#ifndef __TEST_DRM_MODESET_COMMON_H__
|
|
#define __TEST_DRM_MODESET_COMMON_H__
|
|
|
|
#define FAIL(test, msg, ...) \
|
|
do { \
|
|
if (test) { \
|
|
pr_err("%s/%u: " msg, __FUNCTION__, __LINE__, ##__VA_ARGS__); \
|
|
return -EINVAL; \
|
|
} \
|
|
} while (0)
|
|
|
|
#define FAIL_ON(x) FAIL((x), "%s", "FAIL_ON(" __stringify(x) ")\n")
|
|
|
|
int igt_check_plane_state(void *ignored);
|
|
|
|
#endif
|