test/crypto: fix statistics case
authorApeksha Gupta <apeksha.gupta@nxp.com>
Fri, 15 May 2020 17:24:22 +0000 (22:54 +0530)
committerAkhil Goyal <akhil.goyal@nxp.com>
Sun, 17 May 2020 14:10:29 +0000 (16:10 +0200)
commit29fdc5bf4555e16e866188dd9fe95f9bab01404a
treeb8e03d0991a72db094b3987f094b3583246a5c25
parenteff52d4e2f3976be309ee7facbef2efe8e3aff0a
test/crypto: fix statistics case

The test case - test_stats is directly accessing the
cryptodev and its dev_ops which are internal to library
and should not be used directly by the application.
However, the test case is also missing to check for the
error ENOTSUP. It should skip the case if the API returns
ENOTSUP. This patch fixes these two issues.

Fixes: 202d375c60bc ("app/test: add cryptodev unit and performance tests")
Cc: stable@dpdk.org
Signed-off-by: Apeksha Gupta <apeksha.gupta@nxp.com>
Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
app/test/test_cryptodev.c