From: Neil Horman Subject: Re: [RFC 0/4] Use Google Test as DPDK unit test framework Date: Fri, 5 Aug 2016 08:59:52 -0400 Message-ID: <20160805125952.GA22528@hmsreliant.think-freely.org> References: <1470170269-20721-1-git-send-email-declan.doherty@intel.com> <5511822.hGlaykcsx3@xps13> <345C63BAECC1AD42A2EC8C63AFFC3ADC2829180F@irsmsx105.ger.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Yerden Zhumabekov , "Doherty, Declan" , Thomas Monjalon , "dev@dpdk.org" To: Remy Horton Return-path: Received: from smtp.tuxdriver.com (charlotte.tuxdriver.com [70.61.120.58]) by dpdk.org (Postfix) with ESMTP id CDB1D2BA2 for ; Fri, 5 Aug 2016 15:00:18 +0200 (CEST) Content-Disposition: inline In-Reply-To: List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Fri, Aug 05, 2016 at 10:11:56AM +0100, Remy Horton wrote: > > On 05/08/2016 08:41, Yerden Zhumabekov wrote: > [..] > > We use cmocka.org for tests. Written in C. It has support for: > > * mocking; > > * setup/teardown; > > * asserts; > > * test groups. > > > > Output is nicely formatted. > > Cmocka's mocking relies on Gnu ld's --wrap feature, which has problems if > the function being mocked is defined in the same compilation unit that it is > used. Pity really as otherwise it looked quite good to me. > Can't you use ld's --undefined option to get the correct behavior? I thought that was specifically what it was there for. Neil > ..Remy >