[PATCH i-g-t 2/2] tests/intel/kms_dp_link_training: fix assert for igt_find_all_mst_output_in_topology
B, Jeevan
jeevan.b at intel.com
Fri Feb 28 05:17:44 UTC 2025
LGTM.
Reviewed-by: Jeevan B <jeevan.b at intel.com>
> -----Original Message-----
> From: igt-dev <igt-dev-bounces at lists.freedesktop.org> On Behalf Of Kunal
> Joshi
> Sent: Thursday, February 27, 2025 6:01 PM
> To: igt-dev at lists.freedesktop.org
> Cc: Joshi, Kunal1 <kunal1.joshi at intel.com>
> Subject: [PATCH i-g-t 2/2] tests/intel/kms_dp_link_training: fix assert for
> igt_find_all_mst_output_in_topology
>
> fix assert for igt_find_all_mst_output_in_topology
> as it changed to int from bool
>
> Signed-off-by: Kunal Joshi <kunal1.joshi at intel.com>
> ---
> tests/intel/kms_dp_link_training.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/tests/intel/kms_dp_link_training.c
> b/tests/intel/kms_dp_link_training.c
> index 33e690a60..94ae63975 100644
> --- a/tests/intel/kms_dp_link_training.c
> +++ b/tests/intel/kms_dp_link_training.c
> @@ -95,7 +95,7 @@ static void assert_link_status_good(data_t *data, bool
> mst)
> if (mst) {
> igt_assert_f(igt_find_all_mst_output_in_topology(data-
> >drm_fd,
> &data-
> >display, data->output,
> - outputs,
> &count),
> + outputs,
> &count) == 0,
> "Unable to
> find MST outputs\n");
>
> for (i = 0; i < count; i++) {
> @@ -194,7 +194,7 @@ static void do_modeset(data_t *data, bool mst)
> igt_assert_f(igt_find_all_mst_output_in_topology(data-
> >drm_fd,
> &data-
> >display,
> data-
> >output, outs,
> - &out_count),
> + &out_count)
> == 0,
> "Unable to
> find MST outputs\n");
> } else {
> outs[0] = data->output;
> --
> 2.25.1
More information about the igt-dev
mailing list