[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: chef_wrap run issue, VS2010


On (24/02/16 10:26), Daniel Miller wrote:
>Lukas;
>So will cmocka even *do* anything, if the wrapper functionality isn't
>available??  When I was trying to get the chef project to work with VS
>yesterday, it looked to me as though I was going to have to
>re-write chef_cook() itself in order to get the testing functionality, but
>that sort of defeats the purpose of using cmocka at all...
>
>I'll admit that I'm stumbling a bit in understanding how the whole example
>actually works...
>

example/chef_wrap will only work with GNU linker.

But If you do not need to call real function and thus use "--wrap"
then you can mock function in tested module in the same way as
in example/customer_database_test.c

LS


Follow-Ups:
Re: chef_wrap run issue, VS2010Daniel Miller <dmiller@xxxxxxxxxxxxxxxx>
References:
chef_wrap run issue, VS2010Daniel Miller <dmiller@xxxxxxxxxxxxxxxx>
Re: chef_wrap run issue, VS2010Andreas Schneider <asn@xxxxxxxxxxxxxx>
Re: chef_wrap run issue, VS2010Daniel Miller <dmiller@xxxxxxxxxxxxxxxx>
Re: chef_wrap run issue, VS2010Lukas Slebodnik <lslebodn@xxxxxxxxxx>
Re: chef_wrap run issue, VS2010Daniel Miller <dmiller@xxxxxxxxxxxxxxxx>