From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavan Nikhilesh Bhagavatula Subject: Re: [PATCH v2 01/11] eal: add common test assert macros Date: Fri, 15 Dec 2017 14:34:46 +0530 Message-ID: <20171215090445.huivudbztoxknb3j@Pavan-LT> References: <20171212192713.17620-1-pbhagavatula@caviumnetworks.com> <20171214150138.25667-1-pbhagavatula@caviumnetworks.com> <20171214150138.25667-2-pbhagavatula@caviumnetworks.com> <2601191342CEEE43887BDE71AB9772585FAC9A88@irsmsx105.ger.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: dev@dpdk.org To: "Ananyev, Konstantin" , "jerin.jacob@caviumnetworks.com" , "santosh.shukla@caviumnetworks.com" , "Richardson,Bruce" , "Van Haaren, Harry" , "Eads, Gage" , "hemant.agrawal@nxp.com" , "nipun.gupta@nxp.com" , "Ma, Liang J" Return-path: Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0047.outbound.protection.outlook.com [104.47.33.47]) by dpdk.org (Postfix) with ESMTP id 76AE0E5D for ; Fri, 15 Dec 2017 10:05:02 +0100 (CET) Content-Disposition: inline In-Reply-To: <2601191342CEEE43887BDE71AB9772585FAC9A88@irsmsx105.ger.corp.intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Thu, Dec 14, 2017 at 06:43:24PM +0000, Ananyev, Konstantin wrote: > > > > -----Original Message----- > > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Pavan Nikhilesh > > Sent: Thursday, December 14, 2017 3:01 PM > > To: jerin.jacob@caviumnetworks.com; santosh.shukla@caviumnetworks.com; Richardson, Bruce ; Van > > Haaren, Harry ; Eads, Gage ; hemant.agrawal@nxp.com; nipun.gupta@nxp.com; > > Ma, Liang J > > Cc: dev@dpdk.org; Pavan Nikhilesh > > Subject: [dpdk-dev] [PATCH v2 01/11] eal: add common test assert macros > > > > Adding common test assertion macros for unit testing. > > Wonder what's wrong with existing RTE_ASSERT() and RTE_VERIFY()? > Konstantin The existing RTE_ASSERT/VERIFY use rte_panic(). Pavan > > > Taken from test/test.h. > > > > Signed-off-by: Pavan Nikhilesh > > --- > > lib/librte_eal/common/Makefile | 2 +- > > lib/librte_eal/common/include/rte_test.h | 97 ++++++++++++++++++++++++++++++++ > > 2 files changed, 98 insertions(+), 1 deletion(-) > > create mode 100644 lib/librte_eal/common/include/rte_test.h > > > > diff --git a/lib/librte_eal/common/Makefile b/lib/librte_eal/common/Makefile > > index 9effd0d45..eba1059f2 100644 > > --- a/lib/librte_eal/common/Makefile > > +++ b/lib/librte_eal/common/Makefile > > @@ -43,7 +43,7 @@ INC += rte_hexdump.h rte_devargs.h rte_bus.h rte_dev.h > > INC += rte_pci_dev_feature_defs.h rte_pci_dev_features.h > > INC += rte_malloc.h rte_keepalive.h rte_time.h > > INC += rte_service.h rte_service_component.h > > -INC += rte_bitmap.h rte_vfio.h > > +INC += rte_bitmap.h rte_vfio.h rte_test.h > > > > GENERIC_INC := rte_atomic.h rte_byteorder.h rte_cycles.h rte_prefetch.h > > GENERIC_INC += rte_spinlock.h rte_memcpy.h rte_cpuflags.h rte_rwlock.h > > diff --git a/lib/librte_eal/common/include/rte_test.h b/lib/librte_eal/common/include/rte_test.h > > new file mode 100644 > > index 000000000..256117f79 > > --- /dev/null > > +++ b/lib/librte_eal/common/include/rte_test.h > > @@ -0,0 +1,97 @@ [...]