[Intel-gfx] [PATCH i-g-t 2/2] tests: enable the VGA connector in the kms flip and pipe crc tests

Thomas Wood thomas.wood at intel.com
Mon May 19 15:42:08 CEST 2014


Signed-off-by: Thomas Wood <thomas.wood at intel.com>
---
 tests/kms_flip.c           | 7 +++++++
 tests/kms_pipe_crc_basic.c | 5 +++++
 2 files changed, 12 insertions(+)

diff --git a/tests/kms_flip.c b/tests/kms_flip.c
index f2ec9ef..7d6e102 100644
--- a/tests/kms_flip.c
+++ b/tests/kms_flip.c
@@ -1566,6 +1566,8 @@ int main(int argc, char **argv)
 	igt_fixture {
 		drm_fd = drm_open_any();
 
+		igt_set_vga_connector_state(drm_fd, FORCE_CONNECTOR_ON);
+
 		igt_set_vt_graphics_mode();
 		igt_install_exit_handler(kms_flip_exit_handler);
 		get_timestamp_format();
@@ -1613,6 +1615,11 @@ int main(int argc, char **argv)
 	}
 	igt_stop_signal_helper();
 
+	igt_fixture {
+		igt_set_vga_connector_state(drm_fd,
+					    FORCE_CONNECTOR_UNSPECIFIED);
+	}
+
 	/*
 	 * Let drm_fd leak, since it's needed by the dpms restore
 	 * exit_handler and igt_exit() won't return.
diff --git a/tests/kms_pipe_crc_basic.c b/tests/kms_pipe_crc_basic.c
index 282c7f6..eab3b3d 100644
--- a/tests/kms_pipe_crc_basic.c
+++ b/tests/kms_pipe_crc_basic.c
@@ -135,6 +135,8 @@ igt_main
 	igt_fixture {
 		data.drm_fd = drm_open_any();
 
+		igt_set_vga_connector_state(data.drm_fd, FORCE_CONNECTOR_ON);
+
 		igt_set_vt_graphics_mode();
 
 		igt_require_pipe_crc();
@@ -164,5 +166,8 @@ igt_main
 
 	igt_fixture {
 		igt_display_fini(&data.display);
+
+		igt_set_vga_connector_state(data.drm_fd,
+					    FORCE_CONNECTOR_UNSPECIFIED);
 	}
 }
-- 
1.9.0




More information about the Intel-gfx mailing list