From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <stable-bounces@dpdk.org>
Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124])
	by inbox.dpdk.org (Postfix) with ESMTP id 1C537A0548
	for <public@inbox.dpdk.org>; Fri,  2 Apr 2021 16:25:00 +0200 (CEST)
Received: from [217.70.189.124] (localhost [127.0.0.1])
	by mails.dpdk.org (Postfix) with ESMTP id 459E2141034;
	Fri,  2 Apr 2021 16:24:59 +0200 (CEST)
Received: from mga03.intel.com (mga03.intel.com [134.134.136.65])
 by mails.dpdk.org (Postfix) with ESMTP id C0F7814101F;
 Fri,  2 Apr 2021 16:24:57 +0200 (CEST)
IronPort-SDR: vpcSTg1N4wGZiaCf+bygS1gu1vTm8VbOFESHI6kyIU7SUNQn6DhVDNxbAK6AW8I+lLUiOLaoP/
 EdV+468pw4Tg==
X-IronPort-AV: E=McAfee;i="6000,8403,9942"; a="192512482"
X-IronPort-AV: E=Sophos;i="5.81,300,1610438400"; d="scan'208";a="192512482"
Received: from fmsmga008.fm.intel.com ([10.253.24.58])
 by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;
 02 Apr 2021 07:24:57 -0700
IronPort-SDR: mQWzbniuSXIklkVuEdJzme4Z76IpzV7OdBnfJ/WSq7X+943s8ZKKHM1mkNJazZzLdJLKj8M4fk
 UE/b9xGkm29A==
X-ExtLoop1: 1
X-IronPort-AV: E=Sophos;i="5.81,300,1610438400"; d="scan'208";a="413199631"
Received: from silpixa00400355.ir.intel.com (HELO
 silpixa00400355.ger.corp.intel.com) ([10.237.223.148])
 by fmsmga008.fm.intel.com with ESMTP; 02 Apr 2021 07:24:53 -0700
From: Ciara Power <ciara.power@intel.com>
To: dev@dpdk.org
Cc: declan.doherty@intel.com, gakhil@marvell.com, aconole@redhat.com,
 hemant.agrawal@nxp.com, anoobj@marvell.com, ruifeng.wang@arm.com,
 asomalap@amd.com, ajit.khaparde@broadcom.com, g.singh@nxp.com,
 Ciara Power <ciara.power@intel.com>, roy.fan.zhang@intel.com,
 stable@dpdk.org
Date: Fri,  2 Apr 2021 14:24:23 +0000
Message-Id: <20210402142424.1353789-6-ciara.power@intel.com>
X-Mailer: git-send-email 2.25.1
In-Reply-To: <20210402142424.1353789-1-ciara.power@intel.com>
References: <20210402142424.1353789-1-ciara.power@intel.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Subject: [dpdk-stable] [PATCH v2 5/6] test/crypto: fix return value on test
 skipped
X-BeenThere: stable@dpdk.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: patches for DPDK stable branches <stable.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/stable>,
 <mailto:stable-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/stable/>
List-Post: <mailto:stable@dpdk.org>
List-Help: <mailto:stable-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/stable>,
 <mailto:stable-request@dpdk.org?subject=subscribe>
Errors-To: stable-bounces@dpdk.org
Sender: "stable" <stable-bounces@dpdk.org>

The blockcipher testcase return value TEST_SUCCESS was incorrect for
one conditional check, it should have been TEST_SKIPPED similar to the
other condition checks in this function when the testcase is skipped.

Fixes: 4868f6591c6f ("test/crypto: add cases for raw datapath API")
Cc: roy.fan.zhang@intel.com
Cc: stable@dpdk.org

Signed-off-by: Ciara Power <ciara.power@intel.com>
---
 app/test/test_cryptodev_blockcipher.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/test/test_cryptodev_blockcipher.c b/app/test/test_cryptodev_blockcipher.c
index 135e57b9fa..8e168724be 100644
--- a/app/test/test_cryptodev_blockcipher.c
+++ b/app/test/test_cryptodev_blockcipher.c
@@ -160,7 +160,7 @@ test_blockcipher_one_case(const struct blockcipher_test_case *t,
 			printf("Raw Data Path APIs do not support OOP, "
 				"Test Skipped.\n");
 			snprintf(test_msg, BLOCKCIPHER_TEST_MSG_LEN, "SKIPPED");
-			status = TEST_SUCCESS;
+			status = TEST_SKIPPED;
 			goto error_exit;
 		}
 	}
-- 
2.25.1