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

Andrew Rybchenko arybchenko at solarflare.com
Mon Nov 4 13:42:38 CET 2019


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>



More information about the dev mailing list