Signed-off-by: Thomas Wood <thomas.wood@xxxxxxxxx> --- tests/kms_force_connector.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/kms_force_connector.c b/tests/kms_force_connector.c index 7485ca8..f48b187 100644 --- a/tests/kms_force_connector.c +++ b/tests/kms_force_connector.c @@ -36,7 +36,6 @@ igt_main int drm_fd = 0; drmModeRes *res; drmModeConnector *vga_connector = NULL, *temp; - igt_display_t display; int start_n_modes; igt_fixture { @@ -60,6 +59,8 @@ igt_main } igt_subtest("force-connector-state") { + igt_display_t display; + /* force the connector on and check the reported values */ kmstest_force_connector(drm_fd, vga_connector, FORCE_CONNECTOR_ON); temp = drmModeGetConnector(drm_fd, vga_connector->connector_id); @@ -71,6 +72,7 @@ igt_main kmstest_set_vt_graphics_mode(); igt_display_init(&display, drm_fd); igt_display_commit(&display); + igt_display_fini(&display); /* force the connector off */ -- 1.9.1 _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/intel-gfx