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 AA52C42AE6; Fri, 12 May 2023 16:09:59 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7C80842FAC; Fri, 12 May 2023 16:09:59 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 5AD8D40041 for ; Fri, 12 May 2023 16:09:57 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34C90i69021688; Fri, 12 May 2023 07:09:56 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=lwWHYGaYvvqaXQZynVFZJeuaEu7l9FtGDTl4vsre3Cc=; b=WA9VIOEAsNPt64Km09zLTCXK7QZJKDgNuc6C/qNpFQs0i2P2aWXUd/oTMNUgw+Awqnlu E2q/Myr/7icdja7H8jUNKjl8TNci5lWM5lUI0QT4UzjIWxbzA0FJp2uIJ4NhpX0rFVLw o9pejR6f11DHMmiNHKtc22x/lqSEDOvgXXFSo5Jelu7BjMcFAW3BOq/pNFqoZ8SoWMUK 76eF7vLpHpzOTW82c7DfTAEEdaS8S1nyWoOUkoPqxX1FzWVolgtuGQ/zXaYoN1Qi6gBv S+IRR7r2YMrw4Qb8myalCylgmk7K0jadPXAYTZTGs3iVy8SqQyifG1Wkx+Skq9K9uaaS UQ== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3qh9tk2wx4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Fri, 12 May 2023 07:09:56 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Fri, 12 May 2023 07:09:53 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.48 via Frontend Transport; Fri, 12 May 2023 07:09:53 -0700 Received: from BG-LT92004.corp.innovium.com (unknown [10.193.65.175]) by maili.marvell.com (Postfix) with ESMTP id 730D03F7055; Fri, 12 May 2023 07:09:50 -0700 (PDT) From: Anoob Joseph To: Akhil Goyal , Fan Zhang , Ciara Power CC: Hemant Agrawal , Jerin Jacob , Tejasree Kondoj , Kai Ji , Subject: [PATCH 2/2] test/crypto: handle return code Date: Fri, 12 May 2023 19:39:46 +0530 Message-ID: <20230512140946.195-2-anoobj@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230512140946.195-1-anoobj@marvell.com> References: <20230512140946.195-1-anoobj@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: ypaYcbCPjlUszxVPjKnyp6i0ulZMVuDl X-Proofpoint-ORIG-GUID: ypaYcbCPjlUszxVPjKnyp6i0ulZMVuDl X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-05-12_08,2023-05-05_01,2023-02-09_01 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 The sub test case, test_snow3g_decryption, may fail for non-critical reasons such as lack of support. Handle the return value gracefully to allow TEST_SKIPPED return value to be propagated correctly. Signed-off-by: Anoob Joseph --- app/test/test_cryptodev.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c index 86e63a33fc..d212e71ba6 100644 --- a/app/test/test_cryptodev.c +++ b/app/test/test_cryptodev.c @@ -6947,6 +6947,7 @@ test_snow3g_decryption_with_digest_test_case_1(void) struct snow3g_hash_test_data snow3g_hash_data; struct rte_cryptodev_info dev_info; struct crypto_testsuite_params *ts_params = &testsuite_params; + int ret; rte_cryptodev_info_get(ts_params->valid_devs[0], &dev_info); uint64_t feat_flags = dev_info.feature_flags; @@ -6962,8 +6963,9 @@ test_snow3g_decryption_with_digest_test_case_1(void) */ snow3g_hash_test_vector_setup(&snow3g_test_case_7, &snow3g_hash_data); - if (test_snow3g_decryption(&snow3g_test_case_7)) - return TEST_FAILED; + ret = test_snow3g_decryption(&snow3g_test_case_7); + if (ret != TEST_SUCCESS) + return ret; return test_snow3g_authentication_verify(&snow3g_hash_data); } -- 2.25.1