From patchwork Fri Nov 11 16:27:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ji, Kai" X-Patchwork-Id: 119806 X-Patchwork-Delegate: gakhil@marvell.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6C2A1A0547; Fri, 11 Nov 2022 17:27:22 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 57D0D4014F; Fri, 11 Nov 2022 17:27:22 +0100 (CET) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id 6208040141; Fri, 11 Nov 2022 17:27:20 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1668184040; x=1699720040; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=Hl2aMIM6f1UGO3a3OkCq1z7LWOem6YqsYi7fXqvYakM=; b=nWd/VKfVrFRzpWDGeScefQecQJDEkFoE3XOOQ/FpsHHukTtH3HFf4cYO B7CUTLHcfpMLHRg/CKLxcv2TLUsjqLgUzQXBlOl/4Cn3gilZiQzSUoQ9i 0caJkrkKNvMY9UcvKWZUb3azdndnLYzHewdXNtDphjij98EVFE5LR8x2N RfOGASVy5QhJvAePhx5LTtD62pZSRu8Zd4KK1/7GOpteD5ge0VhGGXK5j FuEXONDrt3w6W+Icn8z/CKwGtZpn0o9BfWBhOlRV8bTP0no8UXf4InMbo nMrFGaWr8oPQye+fcoLMSWFStfERVs0TGLzzKbzefMxe/cKebV9NXIi1g w==; X-IronPort-AV: E=McAfee;i="6500,9779,10528"; a="312774528" X-IronPort-AV: E=Sophos;i="5.96,156,1665471600"; d="scan'208";a="312774528" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Nov 2022 08:27:19 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10528"; a="780226477" X-IronPort-AV: E=Sophos;i="5.96,156,1665471600"; d="scan'208";a="780226477" Received: from silpixa00400465.ir.intel.com ([10.55.128.22]) by fmsmga001.fm.intel.com with ESMTP; 11 Nov 2022 08:27:17 -0800 From: Kai Ji To: dev@dpdk.org Cc: stable@dpdk.org, gakhil@marvell.com, Kai Ji , lukaszx.krakowiak@intel.com Subject: [dpdk-dev v2] app/test: fix of bitwise and operator in return Date: Sat, 12 Nov 2022 00:27:15 +0800 Message-Id: <20221111162715.37093-1-kai.ji@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20221111115941.16232-1-kai.ji@intel.com> References: <20221111115941.16232-1-kai.ji@intel.com> 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 Fixes: 24342ade2c9d ("test/crypto: check SNOW3G when digest is encrypted") Cc: lukaszx.krakowiak@intel.com Signed-off-by: Kai Ji Acked-by: Ciara Power --- 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