summaryrefslogtreecommitdiff
path: root/tests/kms_plane_lowres.c
diff options
context:
space:
mode:
authorBhanuprakash Modem <bhanuprakash.modem@intel.com>2021-05-12 22:35:33 +0530
committerPetri Latvala <petri.latvala@intel.com>2021-05-19 10:54:29 +0300
commitcdc2b3b4e4dec29bc1d8cdc2819f10cb30115d37 (patch)
treef675fee4c8b5a430aa88db040807ba369c4c8270 /tests/kms_plane_lowres.c
parent5c4ef2e5b704eb2b84667d6f2010fae4e8bc3f45 (diff)
tests/kms_plane_lowres: Reset the state before exiting the test
Before starting the next subtest, clean up the states to default values, those are assumed by other tests. This patch will also fix few redundant checks. Cc: Imre Deak <imre.deak@intel.com> Cc: Ankit Nautiyal <ankit.k.nautiyal@intel.com> Cc: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com> Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Diffstat (limited to 'tests/kms_plane_lowres.c')
-rw-r--r--tests/kms_plane_lowres.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/tests/kms_plane_lowres.c b/tests/kms_plane_lowres.c
index 5cfe53c8..95346e28 100644
--- a/tests/kms_plane_lowres.c
+++ b/tests/kms_plane_lowres.c
@@ -270,16 +270,13 @@ test_planes_on_pipe(data_t *data, uint64_t modifier)
igt_info("Testing connector %s using pipe %s\n",
igt_output_name(data->output), kmstest_pipe_name(data->pipe));
- for_each_plane_on_pipe(&data->display, data->pipe, plane) {
- data->output = igt_get_single_output_for_pipe(&data->display, data->pipe);
- igt_require(data->output);
-
+ for_each_plane_on_pipe(&data->display, data->pipe, plane)
tested += test_planes_on_pipe_with_output(data, plane, modifier);
- }
- igt_assert(tested > 0);
igt_output_set_pipe(data->output, PIPE_NONE);
igt_display_commit2(&data->display, COMMIT_ATOMIC);
+
+ igt_assert(tested > 0);
}
igt_main