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 6EB6A42CC6 for ; Thu, 15 Jun 2023 14:09:09 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5A1F940EE3; Thu, 15 Jun 2023 14:09:09 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 6977640E0F for ; Thu, 15 Jun 2023 14:09:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686830947; x=1718366947; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=kV+1mCSVM40Nw5GEOO24SKxMV2FZA4H26BvZVujRfm4=; b=ErYr+FXWSjXjRUbvez4NDhNHOMvAxZolddvCRDQsLxmyJ2ihzO1axDYh Bel/EbVlb1z/o3wUJ2hmTFmwmZjOSVV4o5xzDOFCGH7m+zWLICo29xYkb xdRtN7IoutRPtnjGk/PPuHPB9VrDgJx7LnImQ3kVfqPebeFJJ4PSKrwck cOm0p3uh4J3hPj83oRRs7TlInsA16T+bPRr8wtD/5GGMqGHxBJ2wJ4kOb oo1XcQjNH47Js5Q0A/AoLrFulJEVK3bL23os26UwnUiP4CM/sZ3FlGKxL ++5hsVPI2S/U3f9oyT/EOjWDVmvedXJ1l90xjB2AzGzBBQvIc602iqcU5 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10741"; a="445262589" X-IronPort-AV: E=Sophos;i="6.00,244,1681196400"; d="scan'208";a="445262589" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Jun 2023 05:09:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10741"; a="825246261" X-IronPort-AV: E=Sophos;i="6.00,244,1681196400"; d="scan'208";a="825246261" Received: from unknown (HELO silpixa00400902.ir.intel.com) ([10.243.23.123]) by fmsmga002.fm.intel.com with ESMTP; 15 Jun 2023 05:09:05 -0700 From: Saoirse O'Donovan To: Declan Doherty Cc: stable@dpdk.org, Saoirse O'Donovan Subject: [PATCH 20.11] test/crypto: fix return value for SNOW3G Date: Thu, 15 Jun 2023 12:08:00 +0000 Message-Id: <20230615120800.22901-1-saoirse.odonovan@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Unit tests were failing due to the return value of the decryption and authentication functions not being handled correctly. This has now been modified to return the expected test status. Fixes: 326e988672aa ("test/crypto: fix bitwise operator in a SNOW3G case") Cc: stable@dpdk.org Signed-off-by: Saoirse O'Donovan --- 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 34d162f48f..2e76763e09 100644 --- a/app/test/test_cryptodev.c +++ b/app/test/test_cryptodev.c @@ -6386,6 +6386,7 @@ snow3g_hash_test_vector_setup(const struct snow3g_test_data *pattern, static int test_snow3g_decryption_with_digest_test_case_1(void) { + int ret; struct snow3g_hash_test_data snow3g_hash_data; /* @@ -6394,8 +6395,9 @@ test_snow3g_decryption_with_digest_test_case_1(void) */ snow3g_hash_test_vector_setup(&snow3g_test_case_7, &snow3g_hash_data); - if (test_snow3g_decryption(&snow3g_test_case_7)) - return TEST_FAILED; + ret = test_snow3g_decryption(&snow3g_test_case_7); + if (ret != 0) + return ret; return test_snow3g_authentication_verify(&snow3g_hash_data); } -- 2.25.1