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

Submitted by Micah Fedke on April 21, 2015, 3:03 p.m.

Details

Message ID 1429628629-2727-3-git-send-email-micah.fedke@collabora.co.uk
State New
Headers show

Not browsing as part of any series.

Commit Message

Micah Fedke April 21, 2015, 3:03 p.m.
From: Daniel Stone <daniels@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@collabora.com>
---
 tests/core_get_client_auth.c | 6 +++---
 tests/core_getclient.c       | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

Patch hide | download patch | download mbox

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