Return error when the adapter creation fails.
Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
Acked-by: Abhinandan Gujjar <abhinandan.gujjar@intel.com>
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;
}
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;
}