diff options
author | Mohammed Thasleem <mohammed.thasleem@intel.com> | 2022-07-07 14:22:41 +0530 |
---|---|---|
committer | Bhanuprakash Modem <bhanuprakash.modem@intel.com> | 2022-07-08 10:53:26 +0530 |
commit | d001f24bac01f1ab77f68912ec5baaa21196b828 (patch) | |
tree | 615206f7bea96a4983f324a6b52a50d79aa0d714 | |
parent | c033b1519ee92d651d2dbf9807eed539c7d7dcf5 (diff) |
tests/kms_rmfb: Test Cleanup
Sanitize the system state before starting the subtest.
v2: removed display reset and commit2 from igt_main.
Signed-off-by: Mohammed Thasleem <mohammed.thasleem@intel.com>
Reviewed-by: Gupta, Nidhi1 <nidhi1.gupta@intel.com>
-rw-r--r-- | tests/kms_rmfb.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/kms_rmfb.c b/tests/kms_rmfb.c index fb659054..7e43e1bd 100644 --- a/tests/kms_rmfb.c +++ b/tests/kms_rmfb.c @@ -57,12 +57,14 @@ static void test_rmfb(struct rmfb_data *data, igt_output_t *output, enum pipe pipe, bool reopen) { struct igt_fb fb, argb_fb; + igt_display_t *display = &data->display; drmModeModeInfo *mode; igt_plane_t *plane; drmModeCrtc *crtc; uint64_t cursor_width, cursor_height; int num_active_planes = 0; + igt_display_reset(display); igt_output_set_pipe(output, pipe); mode = igt_output_get_mode(output); @@ -145,7 +147,7 @@ test_rmfb(struct rmfb_data *data, igt_output_t *output, enum pipe pipe, bool reo drmModeFreePlane(planeres); } - igt_output_set_pipe(output, PIPE_ANY); + igt_output_set_pipe(output, PIPE_NONE); } static void @@ -196,5 +198,6 @@ igt_main igt_fixture { igt_display_fini(&data.display); + close(data.drm_fd); } } |