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>
This commit is contained in:
Daniel Vetter
2013-08-19 11:09:25 +02:00
parent 9ad062d0b3
commit 8dbd1fb9d4
5 changed files with 22 additions and 21 deletions
-1
View File
@@ -644,7 +644,6 @@ int main(int argc, char **argv)
parse_options(argc, argv);
card_index = drm_get_card();
igt_assert(card_index != -1);
srandom(time(NULL));