summaryrefslogtreecommitdiff
path: root/tests/kms_flip_event_leak.c
diff options
context:
space:
mode:
authorImre Deak <imre.deak@intel.com>2014-09-18 18:31:29 +0300
committerImre Deak <imre.deak@intel.com>2014-09-30 16:46:28 +0300
commitc256af5d448dcaef1d4100c2bdbe25656909197d (patch)
tree4c1215fd9d4d6a03730d5cd0853c515a3cc01cd2 /tests/kms_flip_event_leak.c
parentbfda78cd33b6562306c8c42e83047149f2ff6984 (diff)
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>
Diffstat (limited to 'tests/kms_flip_event_leak.c')
-rw-r--r--tests/kms_flip_event_leak.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/kms_flip_event_leak.c b/tests/kms_flip_event_leak.c
index 8cbec00e..0b454719 100644
--- a/tests/kms_flip_event_leak.c
+++ b/tests/kms_flip_event_leak.c
@@ -114,7 +114,7 @@ igt_simple_main
igt_skip_on_simulation();
- data.drm_fd = drm_open_any();
+ data.drm_fd = drm_open_any_master();
kmstest_set_vt_graphics_mode();
igt_display_init(&data.display, data.drm_fd);