From 229d7d27e5a24fa8e4155ada48467b16db9486e0 Mon Sep 17 00:00:00 2001 From: Daniel Vetter Date: Mon, 14 Aug 2017 11:32:05 +0200 Subject: lib/kms: Add for_each_pipe_static for_each_pipe cannot be used for enumerating testcases, so provide something that can. Signed-off-by: Daniel Vetter Reviewed-by: Petri Latvala --- tests/kms_plane.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/kms_plane.c') diff --git a/tests/kms_plane.c b/tests/kms_plane.c index 1d92a62b..927d5d37 100644 --- a/tests/kms_plane.c +++ b/tests/kms_plane.c @@ -424,6 +424,7 @@ static data_t data; igt_main { + enum pipe pipe; igt_skip_on_simulation(); @@ -436,7 +437,7 @@ igt_main igt_display_init(&data.display, data.drm_fd); } - for (int pipe = 0; pipe < IGT_MAX_PIPES; pipe++) + for_each_pipe_static(pipe) run_tests_for_pipe_plane(&data, pipe); igt_fixture { -- cgit v1.2.3