diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2017-08-14 11:32:05 +0200 |
---|---|---|
committer | Petri Latvala <petri.latvala@intel.com> | 2017-08-14 13:26:15 +0300 |
commit | 229d7d27e5a24fa8e4155ada48467b16db9486e0 (patch) | |
tree | b2a010a330758a159d21d52d70d8abd2641947e0 /tests/kms_plane.c | |
parent | 2459b80b8da75f78baa681d4a878492715dd71f9 (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.c')
-rw-r--r-- | tests/kms_plane.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 { |