From: Thomas Wood Subject: [PATCH i-g-t 2/2] tests: enable the VGA connector in the kms flip and pipe crc tests Date: Mon, 19 May 2014 14:42:08 +0100 Message-ID: <1400506928-12775-3-git-send-email-thomas.wood@intel.com> References: <1400506928-12775-1-git-send-email-thomas.wood@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com [209.85.212.181]) by gabe.freedesktop.org (Postfix) with ESMTP id 06DC46E51B for ; Mon, 19 May 2014 06:42:13 -0700 (PDT) Received: by mail-wi0-f181.google.com with SMTP id n15so4180428wiw.2 for ; Mon, 19 May 2014 06:42:13 -0700 (PDT) In-Reply-To: <1400506928-12775-1-git-send-email-thomas.wood@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org Signed-off-by: Thomas Wood --- 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