From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 5E55C43284; Sat, 4 Nov 2023 00:42:09 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 96FEE40EE1; Sat, 4 Nov 2023 00:41:37 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.93]) by mails.dpdk.org (Postfix) with ESMTP id 01DF5402B6; Sat, 4 Nov 2023 00:41:29 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1699054890; x=1730590890; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=bj/NeAPwjaw3uL94Z9NrkgksSz3WPXtijdVyFnmRxks=; b=W02lRdUHjKebKm1aO9q/3kfzGPsO2g+0GhS3uaw+Pm/4f1LQjPDHlAJM qATyXoRNLwt3GKn7Oe0Rv0MnsI0uPlrSrucZp30f6AzIhv742JG20vo2f Mjsa2mxd2X97oUguO6bzhfC5ardV6tCQ1tTFI9bENHuUBjK+PeZoiMHta RQiSKghpHOqueyq1/NhbgJkxEdImKPk87p5dRoiD30LwwPKK0R1Ncu2L2 EfagjO8RQeOTU1st7j6hAyW8pYTzffl7DvPuHzd1/3Zn+bt9nKMqo+MUC hFboMyYTXANVAEjQDHUWKKFqxErC39U5YEHv75yP2JzOxTPqZmXDRRvmM Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10883"; a="386213578" X-IronPort-AV: E=Sophos;i="6.03,275,1694761200"; d="scan'208";a="386213578" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Nov 2023 16:41:29 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10883"; a="935249153" X-IronPort-AV: E=Sophos;i="6.03,275,1694761200"; d="scan'208";a="935249153" Received: from spr-npg-bds1-eec2.sn.intel.com (HELO spr-npg-bds1-eec2..) ([10.233.181.123]) by orsmga005.jf.intel.com with ESMTP; 03 Nov 2023 16:41:29 -0700 From: Nicolas Chautru To: dev@dpdk.org, maxime.coquelin@redhat.com Cc: hemant.agrawal@nxp.com, david.marchand@redhat.com, hernan.vargas@intel.com, stable@dpdk.org Subject: [PATCH v3 05/10] test/bbdev: assert failed test for queue configure Date: Fri, 3 Nov 2023 23:34:08 +0000 Message-Id: <20231103233413.756110-6-nicolas.chautru@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231103233413.756110-1-nicolas.chautru@intel.com> References: <20231103233413.756110-1-nicolas.chautru@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org From: Hernan Vargas Stop test if rte_bbdev_queue_configure fails to configure queue. Fixes: f714a18885a6 ("app/testbbdev: add test application for bbdev") Cc: stable@dpdk.org Signed-off-by: Hernan Vargas Reviewed-by: Maxime Coquelin --- app/test-bbdev/test_bbdev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/test-bbdev/test_bbdev.c b/app/test-bbdev/test_bbdev.c index 65805977ae..cf224dca5d 100644 --- a/app/test-bbdev/test_bbdev.c +++ b/app/test-bbdev/test_bbdev.c @@ -366,7 +366,8 @@ test_bbdev_configure_stop_queue(void) * - queue should be started if deferred_start == */ ts_params->qconf.deferred_start = 0; - rte_bbdev_queue_configure(dev_id, queue_id, &ts_params->qconf); + TEST_ASSERT_SUCCESS(rte_bbdev_queue_configure(dev_id, queue_id, &ts_params->qconf), + "Failed test for rte_bbdev_queue_configure"); rte_bbdev_start(dev_id); TEST_ASSERT_SUCCESS(return_value = rte_bbdev_queue_info_get(dev_id, -- 2.34.1