test/kms, pm: use drm_open_any_master

These tests require DRM master right, so make sure they have it from the
beginning. This gives an early indication if another DRM master is running
and makes the given test skip (with a proper explanation of the reason)
instead of exiting with error.

Signed-off-by: Imre Deak <imre.deak@intel.com>
This commit is contained in:
Imre Deak
2014-09-18 18:31:29 +03:00
parent bfda78cd33
commit c256af5d44
19 changed files with 19 additions and 19 deletions
+1 -1
View File
@@ -230,7 +230,7 @@ igt_main
igt_skip_on_simulation();
igt_fixture {
drm_fd = drm_open_any();
drm_fd = drm_open_any_master();
bufmgr = drm_intel_bufmgr_gem_init(drm_fd, 4096);
devid = intel_get_drm_devid(drm_fd);