summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorHemant Agrawal <hemant.agrawal@nxp.com>2019-10-01 17:11:18 +0530
committerAkhil Goyal <akhil.goyal@nxp.com>2019-10-09 11:50:12 +0200
commit0f44e7b7aa56f92d9bb383ddbabb2602a7e5619b (patch)
tree9bc9c883cdb23e866705f43f4c2c4e40bee000cf /app
parentf9ee2da6b99dad4cdfc9b95935102ee2508ee098 (diff)
downloaddpdk-0f44e7b7aa56f92d9bb383ddbabb2602a7e5619b.zip
dpdk-0f44e7b7aa56f92d9bb383ddbabb2602a7e5619b.tar.gz
dpdk-0f44e7b7aa56f92d9bb383ddbabb2602a7e5619b.tar.xz
test/crypto: change failure condition check
In some of the cases, the test is looking for a specific failure returned from the CryptoDev. Not all cryptodev support returning specific errors. This patch changes such checks to NOT-SUCCESS Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com> Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
Diffstat (limited to 'app')
-rw-r--r--app/test/test_cryptodev.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c
index bb5ff3c..c83d962 100644
--- a/app/test/test_cryptodev.c
+++ b/app/test/test_cryptodev.c
@@ -10003,8 +10003,8 @@ test_authentication_verify_fail_when_data_corruption(
ut_params->op = process_crypto_request(ts_params->valid_devs[0],
ut_params->op);
TEST_ASSERT_NOT_NULL(ut_params->op, "failed crypto process");
- TEST_ASSERT_EQUAL(ut_params->op->status,
- RTE_CRYPTO_OP_STATUS_AUTH_FAILED,
+ TEST_ASSERT_NOT_EQUAL(ut_params->op->status,
+ RTE_CRYPTO_OP_STATUS_SUCCESS,
"authentication not failed");
ut_params->obuf = ut_params->op->sym->m_src;
@@ -10064,8 +10064,8 @@ test_authentication_verify_GMAC_fail_when_corruption(
ut_params->op = process_crypto_request(ts_params->valid_devs[0],
ut_params->op);
TEST_ASSERT_NOT_NULL(ut_params->op, "failed crypto process");
- TEST_ASSERT_EQUAL(ut_params->op->status,
- RTE_CRYPTO_OP_STATUS_AUTH_FAILED,
+ TEST_ASSERT_NOT_EQUAL(ut_params->op->status,
+ RTE_CRYPTO_OP_STATUS_SUCCESS,
"authentication not failed");
ut_params->obuf = ut_params->op->sym->m_src;
@@ -10125,8 +10125,8 @@ test_authenticated_decryption_fail_when_corruption(
ut_params->op);
TEST_ASSERT_NOT_NULL(ut_params->op, "failed crypto process");
- TEST_ASSERT_EQUAL(ut_params->op->status,
- RTE_CRYPTO_OP_STATUS_AUTH_FAILED,
+ TEST_ASSERT_NOT_EQUAL(ut_params->op->status,
+ RTE_CRYPTO_OP_STATUS_SUCCESS,
"authentication not failed");
ut_params->obuf = ut_params->op->sym->m_src;