[dpdk-dev] [RFC 0/4] Use Google Test as DPDK unit test framework

Neil Horman nhorman at tuxdriver.com
Fri Aug 5 14:59:52 CEST 2016


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
> 


More information about the dev mailing list