[Intel-gfx] [PATCH intel-gpu-tools 2/3] tests: core: Open any DRM device

Micah Fedke micah.fedke at collabora.co.uk
Tue Apr 21 08:03:48 PDT 2015


From: Daniel Stone <daniels at collabora.com>

Don't restrict ourselves to just i915; open any device we see. Allows
non-Intel-specific tests to run on ARM hardware.

Signed-off-by: Daniel Stone <daniels at collabora.com>
---
 tests/core_get_client_auth.c | 6 +++---
 tests/core_getclient.c       | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/tests/core_get_client_auth.c b/tests/core_get_client_auth.c
index bbfdddf..83fe7e9 100644
--- a/tests/core_get_client_auth.c
+++ b/tests/core_get_client_auth.c
@@ -84,7 +84,7 @@ igt_main
 {
 	/* root (which we run igt as) should always be authenticated */
 	igt_subtest("simple") {
-		int fd = drm_open_any();
+		int fd = drm_open_any_any();
 
 		igt_assert(check_auth(fd) == true);
 
@@ -92,8 +92,8 @@ igt_main
 	}
 
 	igt_subtest("master-drop") {
-		int fd = drm_open_any();
-		int fd2 = drm_open_any();
+		int fd = drm_open_any_any();
+		int fd2 = drm_open_any_any();
 
 		igt_assert(check_auth(fd2) == true);
 
diff --git a/tests/core_getclient.c b/tests/core_getclient.c
index 7598e0f..afdb816 100644
--- a/tests/core_getclient.c
+++ b/tests/core_getclient.c
@@ -39,7 +39,7 @@ igt_simple_main
 	int fd, ret;
 	drm_client_t client;
 
-	fd = drm_open_any();
+	fd = drm_open_any_any();
 
 	/* Look for client index 0.  This should exist whether we're operating
 	 * on an otherwise unused drm device, or the X Server is running on
-- 
2.3.5



More information about the Intel-gfx mailing list