summaryrefslogtreecommitdiff
path: root/tests/kms_plane_lowres.c
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2017-08-14 11:32:05 +0200
committerPetri Latvala <petri.latvala@intel.com>2017-08-14 13:26:15 +0300
commit229d7d27e5a24fa8e4155ada48467b16db9486e0 (patch)
treeb2a010a330758a159d21d52d70d8abd2641947e0 /tests/kms_plane_lowres.c
parent2459b80b8da75f78baa681d4a878492715dd71f9 (diff)
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 <daniel.vetter@ffwll.ch> Reviewed-by: Petri Latvala <petri.latvala@intel.com>
Diffstat (limited to 'tests/kms_plane_lowres.c')
-rw-r--r--tests/kms_plane_lowres.c4
1 files changed, 3 insertions, 1 deletions
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 {