summaryrefslogtreecommitdiff
path: root/tests/kms_hdmi_inject.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/kms_hdmi_inject.c')
-rw-r--r--tests/kms_hdmi_inject.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/kms_hdmi_inject.c b/tests/kms_hdmi_inject.c
index 22570a4b..699bad5b 100644
--- a/tests/kms_hdmi_inject.c
+++ b/tests/kms_hdmi_inject.c
@@ -254,7 +254,9 @@ igt_main
igt_fixture {
drm_fd = drm_open_driver_master(DRIVER_INTEL);
+
res = drmModeGetResources(drm_fd);
+ igt_require(res);
connector = get_connector(drm_fd, res);
igt_require(connector);