From mboxrd@z Thu Jan 1 00:00:00 1970 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) Received: from cpe-2606-a000-111b-40ed-7aac-c0ff-fec2-933b.dyn6.twc.com ([2606:a000:111b:40ed:7aac:c0ff:fec2:933b] helo=localhost) by smtp.tuxdriver.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1bVejH-00072g-FO; Fri, 05 Aug 2016 09:00:09 -0400 Date: Fri, 5 Aug 2016 08:59:52 -0400 From: Neil Horman To: Remy Horton Cc: Yerden Zhumabekov , "Doherty, Declan" , Thomas Monjalon , "dev@dpdk.org" 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 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.6.2 (2016-07-01) X-Spam-Score: -1.0 (-) X-Spam-Status: No Subject: Re: [dpdk-dev] [RFC 0/4] Use Google Test as DPDK unit test framework X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Aug 2016 13:00:19 -0000 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 >