[PATCH i-g-t] tests/kms_bw: Fix the condition check for max pipe count

Karthik B S karthik.b.s at intel.com
Tue Mar 26 08:40:20 UTC 2024


On 3/21/2024 10:54 AM, Bhanuprakash Modem wrote:
> Fix the condition check to skip the subtest if ASIC doesn't
> have the requested number of pipes.
>
> Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem at intel.com>
Reviewed-by: Karthik B S <karthik.b.s at intel.com>
> ---
>   tests/kms_bw.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tests/kms_bw.c b/tests/kms_bw.c
> index 96b19199d..05f7e79ad 100644
> --- a/tests/kms_bw.c
> +++ b/tests/kms_bw.c
> @@ -186,7 +186,7 @@ static void run_test_linear_tiling(data_t *data, int pipe, const drmModeModeInfo
>   	 * not give the numver of valid crtcs and always return IGT_MAX_PIPES */
>   	for_each_pipe(display, p) num_pipes++;
>   
> -	igt_skip_on_f(pipe > num_pipes,
> +	igt_skip_on_f(pipe >= num_pipes,
>                         "ASIC does not have %d pipes\n", pipe);
>   
>   	test_init(data);


More information about the igt-dev mailing list