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_lowres.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/kms_plane_lowres.c') diff --git a/tests/kms_plane_lowres.c b/tests/kms_plane_lowres.c index ee39759c..b16c8cd4 100644 --- a/tests/kms_plane_lowres.c +++ b/tests/kms_plane_lowres.c @@ -339,6 +339,8 @@ static data_t data; igt_main { + enum pipe pipe; + igt_skip_on_simulation(); igt_fixture { @@ -350,7 +352,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(&data, pipe); igt_fixture { -- cgit v1.2.3