[EXT] Re: [dpdk-dev v1] app/test: fix of bitwise and operator in return

Akhil Goyal gakhil at marvell.com
Fri Nov 11 14:18:59 CET 2022


> Subject: [EXT] Re: [dpdk-dev v1] app/test: fix of bitwise and operator in return
> 
> External Email
> 
> ----------------------------------------------------------------------
> On 11/11/2022 11:59 AM, Kai Ji wrote:
> > This patch remove incorrect bitwise and operator used in the
> > return function of sw snow3g testcase
> >
Add fixes tag

> > Signed-off-by: Kai Ji <kai.ji at intel.com>
> > ---
> >   app/test/test_cryptodev.c | 6 ++++--
> >   1 file changed, 4 insertions(+), 2 deletions(-)
> >
> > diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c
> > index e1122fcd7c..d6ae762df9 100644
> > --- a/app/test/test_cryptodev.c
> > +++ b/app/test/test_cryptodev.c
> > @@ -6870,8 +6870,10 @@
> test_snow3g_decryption_with_digest_test_case_1(void)
> >   	 */
> >   	snow3g_hash_test_vector_setup(&snow3g_test_case_7,
> &snow3g_hash_data);
> >
> > -	return test_snow3g_decryption(&snow3g_test_case_7) &
> > -
> 	test_snow3g_authentication_verify(&snow3g_hash_data);
> > +	if (test_snow3g_decryption(&snow3g_test_case_7))
> > +		return TEST_FAILED;
> > +
> > +	return test_snow3g_authentication_verify(&snow3g_hash_data);
> >   }
> >
> >   static int
> Acked-by: Fan Zhang <fanzhang.oss at gmail.com>


More information about the stable mailing list