From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id ED3CBC04AB1 for ; Thu, 9 May 2019 11:23:29 +0000 (UTC) Received: from dpdk.org (dpdk.org [92.243.14.124]) by mail.kernel.org (Postfix) with ESMTP id 9C95F20989 for ; Thu, 9 May 2019 11:23:29 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=marvell.com header.i=@marvell.com header.b="Xb4YOtYm" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9C95F20989 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=marvell.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=dev-bounces@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id EB8E549E0; Thu, 9 May 2019 13:23:28 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id 97C5349E0 for ; Thu, 9 May 2019 13:23:27 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x49BF1j6006013; Thu, 9 May 2019 04:23:26 -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=Kr+4jEJiu6O0J63S6prqQ/i1ol9aOuC0K1Xo4bKR/Tk=; b=Xb4YOtYm6KNy8Qw8wzSQlLfU3gmJ01sqV/HnaYmuvaT6vRZ2lWF6/4q3wtRDrTZHjyJV 028OFw6kZEJSMiJyAuGP2lmta8ojgBKL6Tfo/hZ2RLEvxSUNGwiQB/d5qL5mBUd0MEIz Xqik66WfstWRwhRJQYvpG1i+wi6QHML7E0mWgk+5T+FjrqAMzydgL0YuKsaCYE/92OCs kUtFazBEv93/H1X0HltRGC179n3g/G1DRt5haRx/0VNWakraBflJwTxbo0rlw6Wmo6GN AIntWw5GiSOmTMXRIFs1yJQ1YEWpyRXyxBxkT3mCWbMaXJHEX1ZTORSJNrpwdx3PrLwA ig== Received: from sc-exch04.marvell.com ([199.233.58.184]) by mx0a-0016f401.pphosted.com with ESMTP id 2sccp5hr7g-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 09 May 2019 04:23:26 -0700 Received: from SC-EXCH03.marvell.com (10.93.176.83) by SC-EXCH04.marvell.com (10.93.176.84) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Thu, 9 May 2019 04:23:25 -0700 Received: from maili.marvell.com (10.93.176.43) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server id 15.0.1367.3 via Frontend Transport; Thu, 9 May 2019 04:23:26 -0700 Received: from localhost.marvell.com (unknown [10.28.10.76]) by maili.marvell.com (Postfix) with ESMTP id AC6743F7041; Thu, 9 May 2019 04:23:23 -0700 (PDT) From: Ayuj Verma To: , , CC: , , , , , Ayuj Verma Date: Thu, 9 May 2019 16:53:20 +0530 Message-ID: <1557401001-27203-1-git-send-email-ayverma@marvell.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-05-09_02:, , signatures=0 Subject: [dpdk-dev] [PATCH v4] 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" 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 v4: - add reason for change as part of commit message log 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