From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 4D0FCA0613 for ; Fri, 27 Sep 2019 10:18:39 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id EBE582C5E; Fri, 27 Sep 2019 10:18:31 +0200 (CEST) Received: from inva021.nxp.com (inva021.nxp.com [92.121.34.21]) by dpdk.org (Postfix) with ESMTP id 02E2D9E4 for ; Fri, 27 Sep 2019 10:18:26 +0200 (CEST) Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id D11E9200658; Fri, 27 Sep 2019 10:18:25 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 0D6BD200666; Fri, 27 Sep 2019 10:18:24 +0200 (CEST) Received: from bf-netperf1.ap.freescale.net (bf-netperf1.ap.freescale.net [10.232.133.63]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 5D8FA402D5; Fri, 27 Sep 2019 16:18:21 +0800 (SGT) From: Hemant Agrawal To: dev@dpdk.org, abhinandan.gujjar@intel.com Cc: Hemant Agrawal Date: Fri, 27 Sep 2019 13:46:06 +0530 Message-Id: <20190927081606.22931-3-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190927081606.22931-1-hemant.agrawal@nxp.com> References: <20190927081606.22931-1-hemant.agrawal@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Subject: [dpdk-dev] [PATCH] test/event_crypto: add check for adapter failure X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Return err if the adapter creation is failed. Signed-off-by: Hemant Agrawal --- app/test/test_event_crypto_adapter.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/test/test_event_crypto_adapter.c b/app/test/test_event_crypto_adapter.c index 83f3214ca..275729ba6 100644 --- a/app/test/test_event_crypto_adapter.c +++ b/app/test/test_event_crypto_adapter.c @@ -814,7 +814,8 @@ test_crypto_adapter_conf_op_forward_mode(void) enum rte_event_crypto_adapter_mode mode; mode = RTE_EVENT_CRYPTO_ADAPTER_OP_FORWARD; - test_crypto_adapter_conf(mode); + TEST_ASSERT_SUCCESS(test_crypto_adapter_conf(mode), + "Failed to config crypto adapter"); return TEST_SUCCESS; } @@ -825,7 +826,9 @@ test_crypto_adapter_conf_op_new_mode(void) enum rte_event_crypto_adapter_mode mode; mode = RTE_EVENT_CRYPTO_ADAPTER_OP_NEW; - test_crypto_adapter_conf(mode); + TEST_ASSERT_SUCCESS(test_crypto_adapter_conf(mode), + "Failed to config crypto adapter"); + return TEST_SUCCESS; } -- 2.17.1