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 2C95EA0096 for ; Tue, 9 Apr 2019 13:33:58 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A346F4F9C; Tue, 9 Apr 2019 13:33:54 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 86D814F9B for ; Tue, 9 Apr 2019 13:33:52 +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 x39BKnDW028309; Tue, 9 Apr 2019 04:33:51 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=pfpt0818; bh=5+FePxB4eXCVTX4Z4nKUXl/pR6I2Re7++QfMnsYbx7g=; b=OhG7xSEsSZbySFfx2KpX7kYDxsmWlNbAPbwZLZTqA98u5J8FdbjJkOds2tAXpJk+RiMF IUHz+cW7hOtWXCYUSeMrUwS+FHPSTzBmnqv4JVmbKKbsOqnjhb/sr1NbsmtIgi7nZFHy Zwd2gvKCdXzk06K7M42+qu+Z5cqyQCAVZpIEYkKEgULev09vOJp3/rSMkqCKbzdjybxO 0G2TaHPd93DQzbSahzljIkziB9I/feTpQznwCY1YB4w87gqLWE5zHRNlMqZ4cZxd+/rR 2j9dckg0lcBvCGm3aYr9AS5pDEYCcWsN0iQUmAPV+cT0ztCUhEse9e6ipIga9iTxP6xR og== Received: from sc-exch04.marvell.com ([199.233.58.184]) by mx0b-0016f401.pphosted.com with ESMTP id 2rrn7x91w0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Tue, 09 Apr 2019 04:33:51 -0700 Received: from SC-EXCH01.marvell.com (10.93.176.81) by SC-EXCH04.marvell.com (10.93.176.84) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Tue, 9 Apr 2019 04:33:47 -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; Tue, 9 Apr 2019 04:33:48 -0700 Received: from localhost.marvell.com (unknown [10.28.10.76]) by maili.marvell.com (Postfix) with ESMTP id 082E93F703F; Tue, 9 Apr 2019 04:33:46 -0700 (PDT) From: Ayuj Verma To: , , , CC: , , , , , Ayuj Verma Date: Tue, 9 Apr 2019 17:03:39 +0530 Message-ID: <1554809619-21164-2-git-send-email-ayverma@marvell.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1554809619-21164-1-git-send-email-ayverma@marvell.com> References: <1554809619-21164-1-git-send-email-ayverma@marvell.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-04-09_04:, , signatures=0 Subject: [dpdk-dev] [PATCH v2] app/test: replace TEST_SKIPPED with -ENOTSUP 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: <20190409113339.Q59KfXYHQWOEtCui2f2XV4JnNYTON_wcnYXGI0IYwfM@z> Return -ENOTSUP for unsupported tests Signed-off-by: Ayuj Verma Signed-off-by: Shally Verma --- app/test/test_cryptodev_asym.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/test/test_cryptodev_asym.c b/app/test/test_cryptodev_asym.c index d2efce9..feed3a8 100644 --- a/app/test/test_cryptodev_asym.c +++ b/app/test/test_cryptodev_asym.c @@ -352,7 +352,7 @@ struct test_cases_array { RTE_LOG(INFO, USER1, "Device doesn't support sign op with " "exponent key type. Test Skipped\n"); - return TEST_SKIPPED; + return -ENOTSUP; } sess = rte_cryptodev_asym_session_create(sess_mpool); @@ -498,7 +498,7 @@ struct test_cases_array { RTE_LOG(INFO, USER1, "Device doesn't support sign op with " "exponent key type. Test Skipped\n"); - return TEST_SKIPPED; + return -ENOTSUP; } sess = rte_cryptodev_asym_session_create(sess_mpool); @@ -1261,7 +1261,7 @@ static inline void print_asym_capa( &modinv_xform.xform_type, "modinv") < 0) { RTE_LOG(ERR, USER1, "Invalid ASYNC algorithm specified\n"); - return -1; + return -ENOTSUP; } cap_idx.type = modinv_xform.xform_type; @@ -1273,7 +1273,7 @@ static inline void print_asym_capa( modinv_xform.modinv.modulus.length)) { RTE_LOG(ERR, USER1, "Invalid MODULOUS length specified\n"); - return -1; + return -ENOTSUP; } sess = rte_cryptodev_asym_session_create(sess_mpool); @@ -1380,7 +1380,7 @@ static inline void print_asym_capa( < 0) { RTE_LOG(ERR, USER1, "Invalid ASYNC algorithm specified\n"); - return -1; + return -ENOTSUP; } /* check for modlen capability */ @@ -1391,7 +1391,7 @@ static inline void print_asym_capa( capability, modex_xform.modex.modulus.length)) { RTE_LOG(ERR, USER1, "Invalid MODULOUS length specified\n"); - return -1; + return -ENOTSUP; } /* generate crypto op data structure */ -- 1.8.3.1