summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorHemant Agrawal <hemant.agrawal@nxp.com>2019-09-27 13:46:06 +0530
committerJerin Jacob <jerinj@marvell.com>2019-10-05 15:39:31 +0200
commit49e74e0876f94a5287192c4e61e7b3781f2677f4 (patch)
treed5ce3b5b39693a3d3a09516e6081192955ceeb32 /app
parentb2196237eb8aaa0c318caf8cfab7b7b27df696a5 (diff)
downloaddpdk-49e74e0876f94a5287192c4e61e7b3781f2677f4.zip
dpdk-49e74e0876f94a5287192c4e61e7b3781f2677f4.tar.gz
dpdk-49e74e0876f94a5287192c4e61e7b3781f2677f4.tar.xz
test/event_crypto: check adapter config failure
Return error when the adapter creation fails. Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com> Acked-by: Abhinandan Gujjar <abhinandan.gujjar@intel.com>
Diffstat (limited to 'app')
-rw-r--r--app/test/test_event_crypto_adapter.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/app/test/test_event_crypto_adapter.c b/app/test/test_event_crypto_adapter.c
index a856150..652e458 100644
--- a/app/test/test_event_crypto_adapter.c
+++ b/app/test/test_event_crypto_adapter.c
@@ -819,7 +819,8 @@ test_crypto_adapter_conf_op_forward_mode(void)
enum rte_event_crypto_adapter_mode mode;
mode = RTE_EVENT_CRYPTO_ADAPTER_OP_FORWARD;
- test_crypto_adapter_conf(mode);
+ TEST_ASSERT_SUCCESS(test_crypto_adapter_conf(mode),
+ "Failed to config crypto adapter");
return TEST_SUCCESS;
}
@@ -830,7 +831,9 @@ test_crypto_adapter_conf_op_new_mode(void)
enum rte_event_crypto_adapter_mode mode;
mode = RTE_EVENT_CRYPTO_ADAPTER_OP_NEW;
- test_crypto_adapter_conf(mode);
+ TEST_ASSERT_SUCCESS(test_crypto_adapter_conf(mode),
+ "Failed to config crypto adapter");
+
return TEST_SUCCESS;
}