Test case test_stats should be unsupported for dpaa_sec and return -ENOTSUP.
Signed-off-by: Apeksha Gupta <[email protected]> --- app/test/test_cryptodev.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c index c624018ee..5aafe52f1 100644 --- a/app/test/test_cryptodev.c +++ b/app/test/test_cryptodev.c @@ -8821,6 +8821,8 @@ test_stats(void) TEST_ASSERT((rte_cryptodev_stats_get(ts_params->valid_devs[0], 0) != 0), "rte_cryptodev_stats_get invalid Param failed"); dev = &rte_cryptodevs[ts_params->valid_devs[0]]; + if (dev->dev_ops->stats_get == 0) + return -ENOTSUP; temp_pfn = dev->dev_ops->stats_get; dev->dev_ops->stats_get = (cryptodev_stats_get_t)0; TEST_ASSERT((rte_cryptodev_stats_get(ts_params->valid_devs[0], &stats) -- 2.17.1

