This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "".
The branch, master has been updated via acc05760d5060d1782aa597e44c72ccb9a71b63b (commit) from c440dfceff97526d2763383afd8da064faef3d0d (commit)
Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.
- Log ----------------------------------------------------------------- commit acc05760d5060d1782aa597e44c72ccb9a71b63b Author: Dmitry Eremin-Solenikov dmitry.ereminsolenikov@linaro.org Date: Tue Apr 3 15:48:12 2018 +0300
validation: crypto: zero return code of odp_crypto_op/odp_crypto_op_enq
crypto_main test will accept odp_crypto_op/odp_crypto_op_enq returning 0 meaning 0 packets were processed. Instead it should mark test as failedin this case. Fixes: https://bugs.linaro.org/show_bug.cgi?id=3763
Signed-off-by: Dmitry Eremin-Solenikov dmitry.ereminsolenikov@linaro.org Reviewed-by: Bill Fischofer bill.fischofer@linaro.org Signed-off-by: Maxim Uvarov maxim.uvarov@linaro.org
diff --git a/test/validation/api/crypto/odp_crypto_test_inp.c b/test/validation/api/crypto/odp_crypto_test_inp.c index aa053dd5..676b9b12 100644 --- a/test/validation/api/crypto/odp_crypto_test_inp.c +++ b/test/validation/api/crypto/odp_crypto_test_inp.c @@ -200,7 +200,7 @@ static int alg_packet_op(odp_packet_t pkt, op_params.hash_result_offset = plaintext_len;
rc = odp_crypto_op(&pkt, &out_pkt, &op_params, 1); - if (rc < 0) { + if (rc <= 0) { CU_FAIL("Failed odp_crypto_packet_op()"); return rc; } @@ -261,7 +261,7 @@ static int alg_packet_op_enq(odp_packet_t pkt, op_params.hash_result_offset = plaintext_len;
rc = odp_crypto_op_enq(&pkt, &pkt, &op_params, 1); - if (rc < 0) { + if (rc <= 0) { CU_FAIL("Failed odp_crypto_op_enq()"); return rc; }
-----------------------------------------------------------------------
Summary of changes: test/validation/api/crypto/odp_crypto_test_inp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
hooks/post-receive