[Intel-gfx] [PATCH i-g-t 2/2] tests/kms_force_connect: skip if a VGA connector is not available

Chris Wilson chris at chris-wilson.co.uk
Thu Oct 9 17:53:47 CEST 2014


On Thu, Oct 09, 2014 at 04:50:53PM +0100, Thomas Wood wrote:
> Signed-off-by: Thomas Wood <thomas.wood at intel.com>
> ---
>  tests/kms_force_connector.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tests/kms_force_connector.c b/tests/kms_force_connector.c
> index 96881c7..361bf84 100644
> --- a/tests/kms_force_connector.c
> +++ b/tests/kms_force_connector.c
> @@ -54,7 +54,7 @@ main (int argc, char **argv)
>  		connector = NULL;
>  	}
>  
> -	igt_assert(connector);
> +	igt_require(connector);

If you rename this vga_connector, the error message will be immediately
understandable.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre



More information about the Intel-gfx mailing list