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 48F1EA0613 for ; Fri, 27 Sep 2019 12:10:56 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 583BF1BEC9; Fri, 27 Sep 2019 12:10:55 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 58E291BE8E for ; Fri, 27 Sep 2019 12:10:53 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Sep 2019 03:10:52 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,555,1559545200"; d="scan'208";a="204133962" Received: from kmsmsx156.gar.corp.intel.com ([172.21.138.133]) by fmsmga001.fm.intel.com with ESMTP; 27 Sep 2019 03:10:51 -0700 Received: from pgsmsx102.gar.corp.intel.com ([169.254.6.203]) by KMSMSX156.gar.corp.intel.com ([169.254.1.31]) with mapi id 14.03.0439.000; Fri, 27 Sep 2019 18:10:50 +0800 From: "Gujjar, Abhinandan S" To: Hemant Agrawal , "dev@dpdk.org" Thread-Topic: [PATCH] test/event_crypto: add check for adapter failure Thread-Index: AQHVdQwp3c94LwG0OEWm+TA6qtfX+qc/TYVA Date: Fri, 27 Sep 2019 10:10:49 +0000 Message-ID: <5612CB344B05EE4F95FC5B729939F7807954A5F1@PGSMSX102.gar.corp.intel.com> References: <20190927081606.22931-1-hemant.agrawal@nxp.com> <20190927081606.22931-3-hemant.agrawal@nxp.com> In-Reply-To: <20190927081606.22931-3-hemant.agrawal@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNTUzYWQ0OGMtNmZiMi00YjNiLWEyYjAtYTUyNTEzY2UzZjFiIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiTVhZXC9INEIwOEhHamNcL0tyczA5TnNkOHlmZXJ3VERWb0RLeHJGTTE0KzVwUk1YWEZlODRuN0NlMXJnMjc3K0V0In0= dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-originating-ip: [172.30.20.206] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [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" Acked-by: abhinandan.gujjar@intel.com > -----Original Message----- > From: Hemant Agrawal > Sent: Friday, September 27, 2019 1:46 PM > To: dev@dpdk.org; Gujjar, Abhinandan S > Cc: Hemant Agrawal > Subject: [PATCH] test/event_crypto: add check for adapter failure >=20 > Return err if the adapter creation is failed. >=20 > Signed-off-by: Hemant Agrawal > --- > app/test/test_event_crypto_adapter.c | 7 +++++-- > 1 file changed, 5 insertions(+), 2 deletions(-) >=20 > 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; >=20 > mode =3D RTE_EVENT_CRYPTO_ADAPTER_OP_FORWARD; > - test_crypto_adapter_conf(mode); > + TEST_ASSERT_SUCCESS(test_crypto_adapter_conf(mode), > + "Failed to config crypto adapter"); >=20 > return TEST_SUCCESS; > } > @@ -825,7 +826,9 @@ test_crypto_adapter_conf_op_new_mode(void) > enum rte_event_crypto_adapter_mode mode; >=20 > mode =3D 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; > } >=20 > -- > 2.17.1