summaryrefslogtreecommitdiff
path: root/tests/kms_invalid_dotclock.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2018-10-02 16:25:09 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2018-10-03 09:28:01 +0100
commitc5c0dd2e0b6fb2deb2b3e11212250e685177f8ac (patch)
tree33b1cfd7b5ae9db290e87e3529aded56ba3e5be4 /tests/kms_invalid_dotclock.c
parentebf6a1dd1795e2f014ff3c47fe2eb4d5255845bd (diff)
lib/kms: Handle no connectors for igt_enable_connectors()
Take the device fd from the caller as to which card we should try and enable connectors for (or else we may not enable the right connectors for the test!) and fail gracefully if there is no kms support on the device. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Diffstat (limited to 'tests/kms_invalid_dotclock.c')
-rw-r--r--tests/kms_invalid_dotclock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/kms_invalid_dotclock.c b/tests/kms_invalid_dotclock.c
index e7a80d88..568889a9 100644
--- a/tests/kms_invalid_dotclock.c
+++ b/tests/kms_invalid_dotclock.c
@@ -131,7 +131,7 @@ igt_simple_main
data.drm_fd = drm_open_driver_master(DRIVER_INTEL);
igt_require_intel(data.drm_fd);
- igt_enable_connectors();
+ igt_enable_connectors(data.drm_fd);
kmstest_set_vt_graphics_mode();
igt_display_require(&data.display, data.drm_fd);
data.res = drmModeGetResources(data.drm_fd);