[igt-dev] [PATCH i-g-t] tests/kms_flip: skip test if compatible mode is not found

Karthik B S karthik.b.s at intel.com
Thu Jun 2 09:19:27 UTC 2022


On 6/2/2022 12:35 AM, Jeevan B wrote:
> skip test if the compatible mode is not found instead of
> forcing the first connector mode on to the other connector.
>
> Signed-off-by: Jeevan B <jeevan.b at intel.com>
Reviewed-by: Karthik B S <karthik.b.s at intel.com>
> ---
>   tests/kms_flip.c | 3 +--
>   1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/tests/kms_flip.c b/tests/kms_flip.c
> index 5985e012..c5b5741a 100755
> --- a/tests/kms_flip.c
> +++ b/tests/kms_flip.c
> @@ -950,8 +950,7 @@ static void get_compatible_modes(drmModeModeInfo *a, drmModeModeInfo *b,
>   			}
>   		}
>   
> -		/* hope for the best! */
> -		*a = *b = c1->modes[0];
> +		igt_skip("Compatible mode not found.\n");
>   	}
>   
>   	return;




More information about the igt-dev mailing list