From: Daniel Vetter Subject: [PATCH] tests/kms_cursor_crc: Fix up breakage Date: Sat, 22 Mar 2014 15:37:09 +0100 Message-ID: <1395499029-3883-1-git-send-email-daniel.vetter@ffwll.ch> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-ee0-f42.google.com (mail-ee0-f42.google.com [74.125.83.42]) by gabe.freedesktop.org (Postfix) with ESMTP id F1A8F6E545 for ; Sat, 22 Mar 2014 07:37:17 -0700 (PDT) Received: by mail-ee0-f42.google.com with SMTP id d17so2772682eek.15 for ; Sat, 22 Mar 2014 07:37:16 -0700 (PDT) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: Intel Graphics Development Cc: Daniel Vetter List-Id: intel-gfx@lists.freedesktop.org I've accidentally broken the new cursor size extensions, but it wasn't quite correct before already: Variables which are set in igt_fixtures _must_ be outside of the stackframe of the igt_fixture block. Signed-off-by: Daniel Vetter --- tests/kms_cursor_crc.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/kms_cursor_crc.c b/tests/kms_cursor_crc.c index 7423f51409fb..f95448f47356 100644 --- a/tests/kms_cursor_crc.c +++ b/tests/kms_cursor_crc.c @@ -341,11 +341,12 @@ static void run_test_generic(data_t *data, int cursor_max_size) } +uint64_t cursor_width, cursor_height; + igt_main { data_t data = {}; - int cursor_max_size, ret; - uint64_t cursor_width, cursor_height; + int ret; igt_skip_on_simulation(); @@ -371,7 +372,7 @@ igt_main } - run_test_generic(&data, cursor_max_size); + run_test_generic(&data, cursor_width); igt_fixture { free(data.pipe_crc); -- 1.8.5.2