test/crypto: fix stats test
authorRuifeng Wang <ruifeng.wang@arm.com>
Mon, 31 Aug 2020 08:51:43 +0000 (16:51 +0800)
committerAkhil Goyal <akhil.goyal@nxp.com>
Wed, 14 Oct 2020 19:34:04 +0000 (21:34 +0200)
commitb450503612eebc59de96aa3f20ec5ea0e3ceb400
treeef91c2baa68d62362aa9da111ded8e607dd45b64
parentc94c520b4163cf21759cedfe0fe744747ebb4425
test/crypto: fix stats test

ut_setup / ut_teardown are invoked for each test case by test framework.
The call inside test_stats is unnecessary and even incorrect.
This caused double free of objects such as crypto operation structure.
Trapped the issue when RTE_LIBRTE_MEMPOOL_DEBUG was enabled.
Fix issue by removing ut_setup / ut_teardown from test case implementation.

Fixes: 202d375c60bc ("app/test: add cryptodev unit and performance tests")
Cc: stable@dpdk.org
Signed-off-by: Ruifeng Wang <ruifeng.wang@arm.com>
Tested-by: Adam Dybkowski <adamx.dybkowski@intel.com>
app/test/test_cryptodev.c