[igt-dev] [V4 i-g-t 07/24] tests/kms: Close the fd before exit
Kamil Konieczny
kamil.konieczny at linux.intel.com
Mon Jun 26 16:22:18 UTC 2023
Hi Bhanuprakash,
On 2023-06-26 at 10:40:14 +0530, Bhanuprakash Modem wrote:
> Close the file descriptor before exiting the test.
>
> Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem at intel.com>
Reviewed-by: Kamil Konieczny <kamil.konieczny at linux.intel.com>
> ---
> tests/kms_vrr.c | 1 +
> tests/kms_writeback.c | 1 +
> 2 files changed, 2 insertions(+)
>
> diff --git a/tests/kms_vrr.c b/tests/kms_vrr.c
> index d2d79c4eb..6a766bfb9 100644
> --- a/tests/kms_vrr.c
> +++ b/tests/kms_vrr.c
> @@ -528,5 +528,6 @@ igt_main
>
> igt_fixture {
> igt_display_fini(&data.display);
> + drm_close_driver(data.drm_fd);
> }
> }
> diff --git a/tests/kms_writeback.c b/tests/kms_writeback.c
> index c4808b02c..db1f0884f 100644
> --- a/tests/kms_writeback.c
> +++ b/tests/kms_writeback.c
> @@ -606,5 +606,6 @@ igt_main_args("b:c:dl", long_options, help_str, opt_handler, NULL)
> detach_crtc(&display, output);
> igt_remove_fb(display.drm_fd, &input_fb);
> igt_display_fini(&display);
> + drm_close_driver(display.drm_fd);
> }
> }
> --
> 2.40.0
>
More information about the igt-dev
mailing list