[igt-dev] [i-g-t 08/20] tests/xe/xe_gpgpu_fill: Close the fd before exit

Kumar, Janga Rahul janga.rahul.kumar at intel.com
Thu May 18 19:15:53 UTC 2023


LGTM
Reviewed-by: Janga Rahul Kumar <janga.rahul.kumar at intel.com>

> -----Original Message-----
> From: Modem, Bhanuprakash <bhanuprakash.modem at intel.com>
> Sent: 16 May 2023 22:21
> To: igt-dev at lists.freedesktop.org; kamil.konieczny at linux.intel.com; Kumar,
> Janga Rahul <janga.rahul.kumar at intel.com>
> Cc: Modem, Bhanuprakash <bhanuprakash.modem at intel.com>
> Subject: [i-g-t 08/20] tests/xe/xe_gpgpu_fill: Close the fd before exit
> 
> Close the file descriptor before exiting the test.
> 
> Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem at intel.com>
> ---
>  tests/xe/xe_gpgpu_fill.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/tests/xe/xe_gpgpu_fill.c b/tests/xe/xe_gpgpu_fill.c index
> 5bca19c87..28ad2382b 100644
> --- a/tests/xe/xe_gpgpu_fill.c
> +++ b/tests/xe/xe_gpgpu_fill.c
> @@ -131,5 +131,6 @@ igt_main
>  	igt_fixture {
>  		xe_device_put(data.drm_fd);
>  		buf_ops_destroy(data.bops);
> +		drm_close_driver(data.drm_fd);
>  	}
>  }
> --
> 2.40.0



More information about the igt-dev mailing list