Skip to contentSkip to conversation

tests/kms_cursor_crc: Fix up breakage

PATCH New Daniel Vetter 1 participant 1 message Mar 22, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 tests/kms_cursor_crc.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
tests/kms_cursor_crc.c +4 -3
index 7423f51409fb..f95448f47356 100644
@@ -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);
Signature · 1 line
1.8.5.2