Message ID | 1510538405-474-4-git-send-email-odpbot@yandex.ru |
---|---|
State | New |
Headers | show |
Series | [API-NEXT,v2,1/3] linux-gen: crypto: drop extra memcpy on result return | expand |
diff --git a/test/validation/api/crypto/odp_crypto_test_inp.c b/test/validation/api/crypto/odp_crypto_test_inp.c index 1f7523de2..94f2dcf51 100644 --- a/test/validation/api/crypto/odp_crypto_test_inp.c +++ b/test/validation/api/crypto/odp_crypto_test_inp.c @@ -201,6 +201,9 @@ static int alg_packet_op(odp_packet_t pkt, return rc; } + if (!result.ok) + CU_ASSERT(odp_packet_has_error(pkt)); + *ok = result.ok; return 0; @@ -270,6 +273,8 @@ static int alg_packet_op_enq(odp_packet_t pkt, return rc; } + CU_ASSERT((!odp_packet_has_error(pkt)) == result.ok); + *ok = result.ok; return 0;