summaryrefslogtreecommitdiff
path: root/tests/gem_flink.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/gem_flink.c')
-rw-r--r--tests/gem_flink.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/gem_flink.c b/tests/gem_flink.c
index d2e062fd..ff999d2e 100644
--- a/tests/gem_flink.c
+++ b/tests/gem_flink.c
@@ -117,7 +117,11 @@ int main(int argc, char **argv)
{
int fd;
- fd = drm_open_any();
+ fd = drm_open_matching("8086:*", 0);
+ if (fd < 0) {
+ fprintf(stderr, "failed to open intel drm device, skipping\n");
+ return 0;
+ }
test_flink(fd);
test_double_flink(fd);