From c5c0dd2e0b6fb2deb2b3e11212250e685177f8ac Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Tue, 2 Oct 2018 16:25:09 +0100 Subject: 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 Reviewed-by: Maarten Lankhorst --- tests/kms_pipe_crc_basic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/kms_pipe_crc_basic.c') diff --git a/tests/kms_pipe_crc_basic.c b/tests/kms_pipe_crc_basic.c index 9c9078e9..5bc0952f 100644 --- a/tests/kms_pipe_crc_basic.c +++ b/tests/kms_pipe_crc_basic.c @@ -181,7 +181,7 @@ igt_main igt_fixture { data.drm_fd = drm_open_driver_master(DRIVER_ANY); - igt_enable_connectors(); + igt_enable_connectors(data.drm_fd); kmstest_set_vt_graphics_mode(); -- cgit v1.2.3