diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-08-19 11:09:25 +0200 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-08-19 11:09:25 +0200 |
commit | 8dbd1fb9d4ecdd686dac13fb64f7af02480ea849 (patch) | |
tree | a011c42d9a552b8b02e7210aeefa04a4547b8389 /lib/drmtest.h | |
parent | 9ad062d0b30f307cd5045ba03eeb7d2fa90487b0 (diff) |
lib/drmtest: igt_skip when drm_get_card fails
Also add printf support to igt_skip to make sure there's always a
reason why we fail a testcase.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'lib/drmtest.h')
-rw-r--r-- | lib/drmtest.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/drmtest.h b/lib/drmtest.h index 3ba3f4f8..c4e39f04 100644 --- a/lib/drmtest.h +++ b/lib/drmtest.h @@ -132,7 +132,7 @@ const char *igt_subtest_name(void); * * For normal tests without subtest it will directly exit. */ -void igt_skip(void); +__attribute__((format(printf, 1, 2))) void igt_skip(const char *f, ...); void __igt_skip_check(const char *file, const int line, const char *func, const char *check); /** |