[Intel-gfx] [PATCH IGT v2] tests/chamelium: Close DRM file descriptor after tests

Paul Kocialkowski paul.kocialkowski at linux.intel.com
Tue Jun 13 07:37:00 UTC 2017


On Tue, 2017-06-13 at 10:32 +0300, Paul Kocialkowski wrote:
> From: Paul Kocialkowski <paul.kocialkowski at linux.intel.com>
> 
> This adds a call to close the DRM file descriptor. It is required as IGT
> will attempt to become DRM master after running the test, resulting in a
> failure.

+Lyude for Chamelium patches

> Signed-off-by: Paul Kocialkowski <paul.kocialkowski at linux.intel.com>
> ---
>  tests/chamelium.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/tests/chamelium.c b/tests/chamelium.c
> index acd17886..bd7772f8 100644
> --- a/tests/chamelium.c
> +++ b/tests/chamelium.c
> @@ -749,4 +749,8 @@ igt_main
>  		connector_subtest("vga-hpd-without-ddc", VGA)
>  			test_hpd_without_ddc(&data, port);
>  	}
> +
> +	igt_fixture {
> +		close(data.drm_fd);
> +	}
>  }
-- 
Paul Kocialkowski <paul.kocialkowski at linux.intel.com>
Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo


More information about the Intel-gfx mailing list