From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 7E021A05D3 for ; Wed, 24 Apr 2019 21:28:36 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 21C1C1B557; Wed, 24 Apr 2019 21:28:35 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 255601B556 for ; Wed, 24 Apr 2019 21:28:34 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x3OJKP07005027; Wed, 24 Apr 2019 12:28:33 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=pfpt0818; bh=TbxFTEQ7NNIzNAWEtMCagVXnuYzjoFYeuMQ2E4UZMdo=; b=gbDqPUy7S/kYFGn0CkxK7GzS4y/06KOad5UDbYxoMzZLQ56KM3RIr1LIPcplYykgLR5K 8bRle/8k4/2A9JWT7mRR7C7zp8sMVLt1ddXQ2hTx7Jq5uysPxmgIemF/RZpqpL2jKuE3 ClaJ5xF5QysgVjnJYC2a/aCTdZxD6OLM5Q1m74+OFNPdKN309rGAVZfEvUstedmk9Osb B6lA0h3a/e154pdQ/ZIgVwTVb3Y3aBxCD6RLcNqqJ3wy8C+aL7wjneNpGeYofxxpymoy rXYf2/efQORGR8bhxCeaYBV5pwaZ07hZDwYkfKxCk0PsjZkcI6bx8Xmz/UkOkn1DCWd6 ug== Received: from sc-exch03.marvell.com ([199.233.58.183]) by mx0b-0016f401.pphosted.com with ESMTP id 2s2nnjj00w-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 24 Apr 2019 12:28:33 -0700 Received: from SC-EXCH01.marvell.com (10.93.176.81) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Wed, 24 Apr 2019 12:28:32 -0700 Received: from maili.marvell.com (10.93.176.43) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server id 15.0.1367.3 via Frontend Transport; Wed, 24 Apr 2019 12:28:31 -0700 Received: from localhost.marvell.com (unknown [10.28.10.76]) by maili.marvell.com (Postfix) with ESMTP id 880133F703F; Wed, 24 Apr 2019 12:28:29 -0700 (PDT) From: Ayuj Verma To: , , CC: , , , , , Ayuj Verma Date: Thu, 25 Apr 2019 00:58:25 +0530 Message-ID: <1556134106-15245-1-git-send-email-ayverma@marvell.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-04-24_12:, , signatures=0 Subject: [dpdk-dev] [PATCH v3] fix return value for skipped tests X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Message-ID: <20190424192825.Fzmxv8ZGfsNkZ6LlMl4OqQevttb_whQXdPzD5Fj_Ho4@z> Currently some tests return TEST_SKIPPED/-1 when tests or params are not supported for particular PMD because of which tests adds to FAILED test counter in place of Skipped/Unsupported counter. Since unsupported test is not a failure case, replace return value TEST_SKIPPED/-1 with -ENOTSUP Changes in v3: - retain '-1' for app error. - add NULL check for rte_cryptodev_asym_capability_get() - Typo correction Changes in v2: - Replace TEST_SKIPPED/-1 with -ENOTSUP Ayuj Verma (1): app/test: replace TEST_SKIPPED with -ENOTSUP app/test/test_cryptodev_asym.c | 45 ++++++++++++++++++++++++++++++------------ 1 file changed, 32 insertions(+), 13 deletions(-) -- 1.8.3.1