From e9d6116e5bd30639d6333ef95462fe300f47ccd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= Date: Mon, 6 Apr 2009 17:13:01 -0400 Subject: Use libudev in test case to only run gem tests for intel devices. --- tests/gem_mmap.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tests/gem_mmap.c') diff --git a/tests/gem_mmap.c b/tests/gem_mmap.c index b5c15463..d24005ba 100644 --- a/tests/gem_mmap.c +++ b/tests/gem_mmap.c @@ -81,7 +81,11 @@ int main(int argc, char **argv) int ret; int handle; - 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; + } memset(&mmap, 0, sizeof(mmap)); mmap.handle = 0x10101010; -- cgit v1.2.3