lib/drmtest: Properly skip if no intel gfx supported

drm/* kernel test nirvana!

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
Daniel Vetter 2013-08-19 07:57:03 +02:00
parent 47a32a3aec
commit 4ba1f2e104

View File

@ -267,11 +267,7 @@ int drm_open_any(void)
static int open_count;
int fd = __drm_open_any();
if (fd < -1) {
fprintf(stderr, "Failed to open any drm device.%s\n",
geteuid() ? "Retry as root?" : "");
return fd;
}
igt_require(fd >= 0);
if (__sync_fetch_and_add(&open_count, 1))
return fd;