[igt-dev] [i-g-t 07/20] tests/nouveau_crc: Close the fd before exit
Lyude Paul
lyude at redhat.com
Tue May 16 20:14:36 UTC 2023
Reviewed-by: Lyude Paul <lyude at redhat.com>
On Tue, 2023-05-16 at 22:20 +0530, Bhanuprakash Modem wrote:
> Close the file descriptor before exiting the test.
>
> Cc: Lyude Paul <lyude at redhat.com>
> Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem at intel.com>
> ---
> tests/nouveau_crc.c | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/tests/nouveau_crc.c b/tests/nouveau_crc.c
> index 785d39bde..d5aa0e650 100644
> --- a/tests/nouveau_crc.c
> +++ b/tests/nouveau_crc.c
> @@ -409,7 +409,9 @@ igt_main
> close(data.nv_crc_dir);
> }
> }
> - igt_fixture
> - igt_display_fini(&data.display);
>
> + igt_fixture {
> + igt_display_fini(&data.display);
> + drm_close_driver(data.drm_fd);
> + }
> }
--
Cheers,
Lyude Paul (she/her)
Software Engineer at Red Hat
More information about the igt-dev
mailing list