summaryrefslogtreecommitdiff
path: root/tests/kms_content_protection.c
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2018-11-22 10:36:57 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2018-11-27 09:50:04 +0100
commit88a50c7cb151ac5fd98c7ace158c6091053697dd (patch)
tree28344b80ee4db2ca91125eeacaf1125dcf20cec6 /tests/kms_content_protection.c
parent26a6f411ad9c1200a54e7f0542b0f8f4ecb9ce06 (diff)
tests: Use igt_display_require
Remaining tests that have been overlooked and don't need any invasive changes to limit the skipping to only the relevant parts. v2: [A rebase gone wrong] v3: Move the misplaced hunk to the right patch (Antonio). v4: Rebase, kms_content_protection is new. v5: Rebase - need to adjust kms_lease.c too. Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> (v3) Cc: Antonio Argenziano <antonio.argenziano@intel.com> Cc: Chris Wilson <chris@chris-wilson.co.uk> Acked-By: Antonio Argenziano <antonio.argenziano@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tests/kms_content_protection.c')
-rw-r--r--tests/kms_content_protection.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/kms_content_protection.c b/tests/kms_content_protection.c
index ef90ed4c..50ae8286 100644
--- a/tests/kms_content_protection.c
+++ b/tests/kms_content_protection.c
@@ -26,6 +26,7 @@
#include <fcntl.h>
#include "igt.h"
#include "igt_sysfs.h"
+#include "igt_kms.h"
IGT_TEST_DESCRIPTION("Test content protection (HDCP)");
@@ -291,7 +292,7 @@ igt_main
data.drm_fd = drm_open_driver(DRIVER_ANY);
- igt_display_init(&data.display, data.drm_fd);
+ igt_display_require(&data.display, data.drm_fd);
}
igt_subtest("legacy")