From: Hemant Agrawal Date: Fri, 27 Sep 2019 08:16:06 +0000 (+0530) Subject: test/event_crypto: check adapter config failure X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=49e74e0876f94a5287192c4e61e7b3781f2677f4;p=dpdk.git test/event_crypto: check adapter config failure Return error when the adapter creation fails. Signed-off-by: Hemant Agrawal Acked-by: Abhinandan Gujjar --- diff --git a/app/test/test_event_crypto_adapter.c b/app/test/test_event_crypto_adapter.c index a8561505b7..652e458f04 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; }