From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7BFEFA0544; Fri, 11 Nov 2022 12:59:49 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2E13E4014F; Fri, 11 Nov 2022 12:59:49 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 380B640141; Fri, 11 Nov 2022 12:59:47 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1668167987; x=1699703987; h=from:to:cc:subject:date:message-id; bh=0T/Sy6nBnuzCLXdLIOkXgIioTNNkhMYtwmcxjjY1qlc=; b=OBD1DsfCApdZ2+8qdfmgMnLvTH5O/lYPDezPZV3l7MFXqYFAVegQer5y AeUQBJKHfRBr6UPA2QvmvJ7905p6Gt/Na3sz3wmQWif0D8um+/V+DU1s5 usmRS7cB1HRe5faapk3hyyWlO6AKRcKBGs/gCv8RsvCfRkQ1oCZ1ieKbK PzKqTONtIkwJqGXniKjBAaCPNfIapCVWDNCH0/RJn344laHPtJG2ol9yt 7FBsfHiiVPrb2UKnDd56ckfEOpyCCOfujoUfDr6emvOG8W5PNFG2BjSYF mn8g4RoV3xxS0TxjZjhVP//dkh836QYIJRFUqN19dUf63cWVmOHNwsNZo g==; X-IronPort-AV: E=McAfee;i="6500,9779,10527"; a="397878395" X-IronPort-AV: E=Sophos;i="5.96,156,1665471600"; d="scan'208";a="397878395" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Nov 2022 03:59:45 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10527"; a="701194853" X-IronPort-AV: E=Sophos;i="5.96,156,1665471600"; d="scan'208";a="701194853" Received: from silpixa00400465.ir.intel.com ([10.55.128.22]) by fmsmga008.fm.intel.com with ESMTP; 11 Nov 2022 03:59:44 -0800 From: Kai Ji To: dev@dpdk.org Cc: stable@dpdk.org, gakhil@marvell.com, Kai Ji Subject: [dpdk-dev v1] app/test: fix of bitwise and operator in return Date: Fri, 11 Nov 2022 19:59:41 +0800 Message-Id: <20221111115941.16232-1-kai.ji@intel.com> X-Mailer: git-send-email 2.17.1 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org This patch remove incorrect bitwise and operator used in the return function of sw snow3g testcase Signed-off-by: Kai Ji --- 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 -- 2.17.1