From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EE402EE645D for ; Thu, 12 Sep 2024 07:58:08 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4FE2310E88C; Thu, 12 Sep 2024 07:58:08 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="m7gr+1Dc"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.18]) by gabe.freedesktop.org (Postfix) with ESMTPS id C7E5D10E9DF for ; Thu, 12 Sep 2024 07:58:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1726127886; x=1757663886; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=EqWh5OJ+FGZHtTfB7CsiXDb1JjyykBp7ZDu7P/lfRa8=; b=m7gr+1DcxGGhHZpabWZZvHqI5IuatzBWMjKESq+8v3oGOPdNN8CoZQM5 hoTp7mQ1WQL4I7SDMbnZB1vCib7s9nh1ha9nWQQNpgOUPBvZoO8g6itNu gaEc+R50Ds6NjjUCZ8eFIBo+tEnLDUSuMKd4Vns4jMA0iuF6kzovlWLXl 7MxSNosEXp7qynWH65p7YnmOhjfpOwL/tK3u2GQnNowuaetaOVLaP/yeI rtgWpOCGNKcpbI2/Az7Ki1K+99EHNdnBYAYXGtZg9T84Pbni4EjHOUzXI AKBVyfD45DOHDWyELQzyciXyChC3X5+FkQcnEIycYD7ZxmdNgcoXA8jwQ Q==; X-CSE-ConnectionGUID: Q1Z2MbeBSoGdoy/61dsPTg== X-CSE-MsgGUID: /f+vZNtLRa6Veup+UuhfDQ== X-IronPort-AV: E=McAfee;i="6700,10204,11192"; a="25095457" X-IronPort-AV: E=Sophos;i="6.10,222,1719903600"; d="scan'208";a="25095457" Received: from fmviesa006.fm.intel.com ([10.60.135.146]) by orvoesa110.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Sep 2024 00:58:06 -0700 X-CSE-ConnectionGUID: jw8Y0FtKRhWoKXlyg37NcQ== X-CSE-MsgGUID: 2j8QPRLRQYyJaIrKZPlrag== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.10,222,1719903600"; d="scan'208";a="67248415" Received: from kandpal-x299-ud4-pro.iind.intel.com ([10.190.239.32]) by fmviesa006.fm.intel.com with ESMTP; 12 Sep 2024 00:58:04 -0700 From: Suraj Kandpal To: igt-dev@lists.freedesktop.org Cc: mohammed.thasleem@intel.com, karthik.b.s@intel.com, jeevan.b@intel.com, Suraj Kandpal Subject: [PATCH i-g-t 2/3] tests/kms_content_protection: Print correct output Date: Thu, 12 Sep 2024 13:25:34 +0530 Message-ID: <20240912075536.710350-3-suraj.kandpal@intel.com> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240912075536.710350-1-suraj.kandpal@intel.com> References: <20240912075536.710350-1-suraj.kandpal@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: igt-dev@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development mailing list for IGT GPU Tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" 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 Reviewed-by: Jeevan B --- 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