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_flip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/kms_flip.c') diff --git a/tests/kms_flip.c b/tests/kms_flip.c index f7d08a60..44a82053 100644 --- a/tests/kms_flip.c +++ b/tests/kms_flip.c @@ -1575,7 +1575,7 @@ int main(int argc, char **argv) igt_fixture { drm_fd = drm_open_driver_master(DRIVER_ANY); - igt_enable_connectors(); + igt_enable_connectors(drm_fd); kmstest_set_vt_graphics_mode(); igt_install_exit_handler(kms_flip_exit_handler); -- cgit v1.2.3