aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJanne Peltonen <janne.peltonen@nokia.com>2023-03-02 21:49:03 +0200
committerMatias Elo <matias.elo@nokia.com>2023-04-12 15:52:37 +0300
commit073fad78e74c678ee0e60429aad6aab34a15839c (patch)
tree90629dc8bf9ab8f46eead968993b5468ea073697 /test
parent5c15257abfb6e6ff95d68ed27797298db56aa43a (diff)
validation: crypto: prepare for odp_crypto_result() changes
Allow odp_crypto_result() to report operation failure through the return value in addition to the ok field. This prepares for the coming implementation change for the new API semantics by letting ODP linux-gen implementations of both the old and the new API pass tests. Signed-off-by: Janne Peltonen <janne.peltonen@nokia.com> Reviewed-by: Anoob Joseph <anoobj@marvell.com>
Diffstat (limited to 'test')
-rw-r--r--test/validation/api/crypto/odp_crypto_test_inp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/validation/api/crypto/odp_crypto_test_inp.c b/test/validation/api/crypto/odp_crypto_test_inp.c
index 89b16457e..d2db459f2 100644
--- a/test/validation/api/crypto/odp_crypto_test_inp.c
+++ b/test/validation/api/crypto/odp_crypto_test_inp.c
@@ -328,11 +328,11 @@ static int alg_packet_op(odp_packet_t pkt_in,
CU_ASSERT(odp_packet_subtype(*pkt_out) == ODP_EVENT_PACKET_CRYPTO);
rc = odp_crypto_result(&result, *pkt_out);
- if (rc < 0) {
+ if (rc < -1) {
CU_FAIL("Failed odp_crypto_packet_result()");
return rc;
}
- CU_ASSERT(rc == 0);
+ CU_ASSERT(rc == 0 || rc == -1);
if (op_type == ODP_CRYPTO_OP_TYPE_OOP &&
suite_context.op_mode == ODP_CRYPTO_ASYNC)