diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-03-22 14:45:54 +0100 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-03-22 14:46:21 +0100 |
commit | 52edf3a17714e1ba2a9060401ec0f63614bc632b (patch) | |
tree | d0f57eaa04ec976f16d2cd6781babd0fb4e878a3 /tests | |
parent | a388f3b98f039403a4583748db980d4a44dd6748 (diff) |
tests/kms_cursor_crc: Fix up breakage
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 <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/kms_cursor_crc.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/kms_cursor_crc.c b/tests/kms_cursor_crc.c index 7423f514..f95448f4 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); |