test/mempool: fix autotest retry
authorAndrew Rybchenko <arybchenko@solarflare.com>
Wed, 25 Apr 2018 17:00:37 +0000 (18:00 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 26 Apr 2018 16:16:12 +0000 (18:16 +0200)
commit2d645858a93e21a41e84928d4fb869318c3639a6
treec15300c0a7bcad4d8c58c62d45c79460b36b801c
parent896af46bd1ade6d8d1f452f03c6e08e0965d7ef9
test/mempool: fix autotest retry

Single producer / single consumer mempool handle is stored in static
variable and the mempool allocated if stored value is NULL.
If the mempool is freed, NULL should be restored to make sure that
the mempool is allocated once again next time when the test is run.

Fixes: 8ef772aee072 ("app/test: rework mempool test")
Cc: stable@dpdk.org
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
test/test/test_mempool.c