diff options
author | Janne Peltonen <janne.peltonen@nokia.com> | 2023-03-02 21:49:08 +0200 |
---|---|---|
committer | Matias Elo <matias.elo@nokia.com> | 2023-04-12 15:52:37 +0300 |
commit | bd8fd8d73b91293e7f5e00bb015e9fb4deada115 (patch) | |
tree | f138dd054c96e8d62956e955a45e6c5c3dff1084 /test | |
parent | 089d96c4d473ad4ea72c7ee2a795f974131f6965 (diff) |
validation: crypto: simplify crypto operation result checking
Check crypto operation success from the return value of
odp_crypto_result(). Do not check odp_crypto_packet_result_t::ok
unless compiled with deprecated API enabled.
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.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/validation/api/crypto/odp_crypto_test_inp.c b/test/validation/api/crypto/odp_crypto_test_inp.c index d2db459f2..0aefd659b 100644 --- a/test/validation/api/crypto/odp_crypto_test_inp.c +++ b/test/validation/api/crypto/odp_crypto_test_inp.c @@ -338,7 +338,11 @@ static int alg_packet_op(odp_packet_t pkt_in, suite_context.op_mode == ODP_CRYPTO_ASYNC) CU_ASSERT(result.pkt_in == pkt_in); - *ok = result.ok; + *ok = (rc == 0); + +#if ODP_DEPRECATED_API + CU_ASSERT(*ok == result.ok); +#endif return 0; } |