[PATCH i-g-t 2/3] tests/kms_content_protection: Print correct output

Suraj Kandpal suraj.kandpal at intel.com
Tue Sep 10 09:45:27 UTC 2024


We should be printing the output we are waiting for
which is first_output rather than printing the 0th output.

Signed-off-by: Suraj Kandpal <suraj.kandpal at intel.com>
---
 tests/kms_content_protection.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/kms_content_protection.c b/tests/kms_content_protection.c
index cad8811ea..c3771fad8 100644
--- a/tests/kms_content_protection.c
+++ b/tests/kms_content_protection.c
@@ -653,7 +653,8 @@ static void test_cp_lic_on_mst(igt_output_t *mst_outputs[], int valid_outputs, i
 
 	/* Only wait for the first output, this optimizes the test execution time */
 	ret = wait_for_prop_value(mst_outputs[first_output], CP_DESIRED, LIC_PERIOD_MSEC);
-	igt_assert_f(!ret, "Content Protection LIC Failed on %s\n", mst_outputs[0]->name);
+	igt_assert_f(!ret, "Content Protection LIC Failed on %s\n",
+		     mst_outputs[first_output]->name);
 
 	for (count = first_output + 1; count < valid_outputs; count++) {
 		val = igt_output_get_prop(mst_outputs[count], IGT_CONNECTOR_CONTENT_PROTECTION);
-- 
2.43.2



More information about the igt-dev mailing list