From a508fc86224887c413d99e55b524f3b03a073ed5 Mon Sep 17 00:00:00 2001 From: Maarten Lankhorst Date: Mon, 29 Feb 2016 10:04:31 +0100 Subject: tests/kms_force_connector_basic: Disable all crtc's for load-detect. Load detection requires a inactive crtc to run. The CI igt tests are failing, so ensure there is at least 1 inactive crtc. Signed-off-by: Maarten Lankhorst Reviewed-by: Daniel Vetter --- tests/kms_force_connector_basic.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests/kms_force_connector_basic.c') diff --git a/tests/kms_force_connector_basic.c b/tests/kms_force_connector_basic.c index 5b2dce06..d2c804c8 100644 --- a/tests/kms_force_connector_basic.c +++ b/tests/kms_force_connector_basic.c @@ -88,6 +88,7 @@ int main(int argc, char **argv) igt_fixture { drm_fd = drm_open_driver_master(DRIVER_INTEL); res = drmModeGetResources(drm_fd); + igt_assert(res); /* find the vga connector */ for (int i = 0; i < res->count_connectors; i++) { @@ -111,6 +112,13 @@ int main(int argc, char **argv) } igt_subtest("force-load-detect") { + /* + * disable all outputs to make sure we have a + * free crtc available for load detect + */ + kmstest_set_vt_graphics_mode(); + kmstest_unset_all_crtcs(drm_fd, res); + igt_set_module_param_int("load_detect_test", 1); /* This can't use drmModeGetConnectorCurrent -- cgit v1.2.3