[dpdk-dev] [PATCH] test/mempool: fix false positive test result

Thomas Monjalon thomas at monjalon.net
Wed Nov 6 11:44:03 CET 2019


04/11/2019 13:42, Andrew Rybchenko:
> On 11/4/19 1:06 PM, Olivier Matz wrote:
> > The ret variable, initialized to -1, is changed to 0 during the test,
> > making the test successful in some cases where it should return a
> > failure.
> >
> > Fix this by always using the GOTO_ERR() macro that sets the ret
> > variable before doing the goto.
> >
> > Fixes: 923ceaeac140 ("test/mempool: add unit test cases")
> > Cc: Pallantla Poornima <pallantlax.poornima at intel.com>
> >
> > Signed-off-by: Olivier Matz <olivier.matz at 6wind.com>
> 
> Acked-by: Andrew Rybchenko <arybchenko at solarflare.com>

Applied, thanks




More information about the dev mailing list