From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0079.outbound.protection.outlook.com [104.47.40.79]) by dpdk.org (Postfix) with ESMTP id D1DCBF11 for ; Wed, 5 Sep 2018 16:23:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=aB6zgi587gSs4npaagfT3BdavXEs1izl2GPMTbW6y2s=; b=ZJ6GOOUbpfMLCdTpZZB1R57INXN77T6W1Uqzc4aMPX/VhPOaTr6hZXwVnjXZib77YmpyclvJVCVL/86nvYXOOF46S873M0zJ+3b/KKC/F63+pVUbizTQ5eRDOXrI5sMZFjmF5ECy2QVJroq/Y3eBtQGXYO81p3dClu/aUmvoVmw= Received: from localhost.localdomain (111.93.218.67) by DM6PR07MB4971.namprd07.prod.outlook.com (2603:10b6:5:25::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1080.17; Wed, 5 Sep 2018 14:23:55 +0000 From: Pavan Nikhilesh To: jerin.jacob@caviumnetworks.com Cc: dev@dpdk.org, Pavan Nikhilesh Date: Wed, 5 Sep 2018 19:53:31 +0530 Message-Id: <20180905142331.9167-1-pbhagavatula@caviumnetworks.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: DM5PR19CA0004.namprd19.prod.outlook.com (2603:10b6:3:151::14) To DM6PR07MB4971.namprd07.prod.outlook.com (2603:10b6:5:25::16) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: dd0fe07d-3014-402f-eafb-08d6133b36fd X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989137)(5600074)(711020)(2017052603328)(7153060)(7193020); SRVR:DM6PR07MB4971; X-Microsoft-Exchange-Diagnostics: 1; DM6PR07MB4971; 3:5/sOLYi4771YfilusJfdeIxxZubt9yhlNiG97gFdXIiGjstNkbqmft6u3E46vop9kE7ohb9OP0e6sKXPCQr+lBArT6dMqA02ASTnbww5EuZgXioV8BgROFuRZWAgWIp8x4HYc5fDvMdLcNaw5+ekoUyNzN90Wxy5K0Rpcd298U+ANz12l5jgy3wNyodkRU42sxpT3BymA9niP0i+6bEPM00o8M85ApczxtviJPnTSKfGzlnW+Mt5PdXVljt/WyNa; 25:pIfcTgccmeCYacK+pTStbjAoQ/OWX0nKeI9fx2z0dZfBCFLImFiOoYQ5j4QA22opAi65AmWyBN6uXzZyYa1RvEz1wpYL4JY3Exup2IiHPi3FRu89DUUzFMH8UHdq/ZPT7p1E0kCkxM8W40LbepcFHhMggHb0QHsRYHadNAXZjtdRDwR+gsvyRoIqGVi7w1DeyigrcChSs7hfn8Dib4MOiwg9tBhk6K72iubeyx4E0ktuVwnL+RaTsLk258BccixzxM1UftxN94GzBz9wrVPFvFKm05mO+TnD78GRvArkpq4KCN5IICPpQCKQ1QRdsyup5V6vR+Pw3OLguqSCkDaf3Q==; 31:8nnEWti/HYt9QoCaPeHjEr1L971jpzTanjEiTXIaJqaRfF0WOwwQlzxTZGK8qNecmEaqWbSty7hYiCsecEz+8kwsiOd8cYucBUE95S2H3dmts3OCKE1KzUxiKMMSma3GxR1qRmVtPHgzHms7z9SPJYL5Nv3g7Fh+7ZvbvpAFDZJJfuifKcIvTmHAPJGlpILucdmpvHQVhW0W5h0H2cM/ELd+0qtUDV8KXEn9gkCbyUo= X-MS-TrafficTypeDiagnostic: DM6PR07MB4971: Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Pavan.Bhagavatula@cavium.com; X-Microsoft-Exchange-Diagnostics: 1; DM6PR07MB4971; 20:hOE/Cea+B8wElgNieaywRO6eizSFhdGbRm0BXpz2igpB0x8C95uI8YsuVKJ0gdqvMlz9BJKC4meSnhb36K6CjuPRoYufnr1m+HJFKmr1/T+wHqp2YHqTWFl+gtM0tKRCs0NjGyXkxGQJ5W0MzL1Y4BG+JoiaFTrMt5yZJDy7JeJ0cco2d/xY1HnQ8LwjbfVlBSoyXaOSmsDOGtKb8YDEGx5lEYQTp+lRmeO6VbwQdlSfWU9zGoF3cQEboCQFkfwbPwzc1YX8tVoop+mbgHtw+uZI0BlZ4QHpl02GGT9wRzdNAJEOGnMdR+PN32G2pKxqJMjZRlzL0+ivLzp9QmWnLTinDdmr0r5NyJrzMnvJHyJ485e8mPDhG6x3qkajVaDV4kqpfVoSLOYWnvnDlJ45dpVl5veTjZMCcPIr7xcu4mdQ5LaFXYyUe3yeQnov3RXhSyByMFbElOLhweBETaTgeCmVMLXL1vG77XhKGAyPUXpcYOMT4UZyUSkt0XdyZ8/8xCO2xlExolTbkOjVAWkTqqqXr/YiPLsw+w9RenPySpcVS8CJjl9GpJvkSr0rkzEjWWUHaGiV63gk57SUtlzKpkLqjnlcYebIvz8NTWpCAWU=; 4:cIGp+gWvSrpTULFGYWRZ7GrE9garHvWQ6gLipZliYpma9Lpus/sGkgoRteZbwGGIu8Qeioe11z325WGUWxAgKQYLHKmz338O512IjLf+3z4XtkWeQ9A69zk0AYPM+8mjGte0u2WB1AdhsxVFbMiVY/lkttNIrTpKswdMp08lOmH8W2yh6k1FZzPBQ/VFRvvjDyf9rMp5x5yjOkcCUxRMzoP69k037fzmDN0pxemee4/bLIVCeOUfNqNzd/+MisO2ocuUQ/lXeZ0Pxh3mOjSA0A== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(823301075)(93006095)(3002001)(3231344)(944501410)(52105095)(10201501046)(149027)(150027)(6041310)(20161123558120)(20161123562045)(20161123560045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699049)(76991033); SRVR:DM6PR07MB4971; BCL:0; PCL:0; RULEID:; SRVR:DM6PR07MB4971; X-Forefront-PRVS: 078693968A X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(979002)(6069001)(396003)(39850400004)(346002)(136003)(376002)(366004)(199004)(189003)(42882007)(81166006)(81156014)(105586002)(2351001)(6636002)(2906002)(50226002)(6666003)(36756003)(72206003)(478600001)(8676002)(2361001)(305945005)(7736002)(69590400006)(5009440100003)(106356001)(3846002)(6116002)(68736007)(8936002)(25786009)(6512007)(53936002)(48376002)(50466002)(26005)(1076002)(47776003)(316002)(37006003)(66066001)(34206002)(107886003)(6486002)(16586007)(2616005)(51416003)(97736004)(16526019)(956004)(1857600001)(575784001)(52116002)(5660300001)(6506007)(476003)(386003)(486006)(4326008)(42262002)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM6PR07MB4971; H:localhost.localdomain; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM6PR07MB4971; 23:bmfiTQj5lT/24TUdMoOzWYr3GuLNGhHPinRaJjYv6?= =?us-ascii?Q?dbAUitHwQTgSpB8Yl477wymBFVo3E2A+tKDVG2w/J+fQY205WWgilBVc4BVd?= =?us-ascii?Q?g88S6ztm1OIIfh5UcDX0/ocdINzbGuI+uUR6dQP7xLMMpjBczhwChwzexwM5?= =?us-ascii?Q?qvHfqjuSYMWV/lNYJOOJ1ALhMHvf05KLCSwA0eY+IdGNXaeWKzUHA1SaLbp6?= =?us-ascii?Q?zZMMasA+bWoLKS35CyiTUbQJs/ZAXSzu16rCLGxpm337/6G0RKXHqIcrTHaK?= =?us-ascii?Q?tABEgEig3akdoAAxhgcWBFwhLgWbvnOyCDrUSM8KVo1DkFVWYppGYNkOsxKW?=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+B7dR1kkaC8pSkgb2sZmkRNKjJ/is0Z4Y0lw6boeR8/LKG0Qnswb9bxfyNP7iyoTCbrpLf0wZcOWKD3m8vwqwgJfU9WeCNjIQxdLpEuXZKnwknC2wmMT9llSnRnIkMzlpl9J6y+EAZhIiEvyGsl7w1yWKkaWKEdujxd/P420dT1bMw==; 5:4aQQopiUnbQvKg9xON43Fc/pvOZoBRZYfYCIK3V6JawcU5lFFwWsq+RF2eQHjhMhdaF9+S66MVv6+8J1BdwczenSIPZ86tmXb4utqJKotZx3hhVsu5xj5lQAlkzeIf2mMDr+D73Mb5wjk1hshZt/wKvxblbfMciExICi3stsJMI=; 7:/mLOcLz6pErjfF7gFQ1r2Dbuh6pPEfwzfzQ18u6Talv0EuprAh0nY4wKs7oNgpBeuK2HA2JIuHZr2sa7dNg/eabvSlm/hF06oJ+FaZ0r5uIklVCwBHIO0yNfu0roIheEmFea9I/9ecRez5tL/SO18Chauxik3LIE/BzTv6/HheQdWFILXqc2jQGMDLaLTPxf4S1uDNue6BWvLBpiREuHi62ENdH0o/VVWWqRFYEbIFr96Ga3MTa3IYg3b8ZVcMTr SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Sep 2018 14:23:55.3303 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: dd0fe07d-3014-402f-eafb-08d6133b36fd X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR07MB4971 Subject: [dpdk-dev] [PATCH] test/eventdev: fix incorrect unit test 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: , X-List-Received-Date: Wed, 05 Sep 2018 14:23:59 -0000 Enqueue, dequeue depths are only valid for event devs that have burst mode capability. Check event dev capability before testing depth boundary. Fixes: f8f9d233ea0e ("test/eventdev: add unit tests") Signed-off-by: Pavan Nikhilesh --- test/test/test_eventdev.c | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/test/test/test_eventdev.c b/test/test/test_eventdev.c index 04bdc6b6c..00d73275c 100644 --- a/test/test/test_eventdev.c +++ b/test/test/test_eventdev.c @@ -190,15 +190,18 @@ test_eventdev_configure(void) "Config negative test failed"); TEST_ASSERT_EQUAL(-EINVAL, test_ethdev_config_run(&dev_conf, &info, max_event_queue_flows), - "Config negative test failed"); - TEST_ASSERT_EQUAL(-EINVAL, - test_ethdev_config_run(&dev_conf, &info, - max_event_port_dequeue_depth), - "Config negative test failed"); - TEST_ASSERT_EQUAL(-EINVAL, - test_ethdev_config_run(&dev_conf, &info, - max_event_port_enqueue_depth), - "Config negative test failed"); + "Config negative test failed"); + + if (info.event_dev_cap & RTE_EVENT_DEV_CAP_BURST_MODE) { + TEST_ASSERT_EQUAL(-EINVAL, + test_ethdev_config_run(&dev_conf, &info, + max_event_port_dequeue_depth), + "Config negative test failed"); + TEST_ASSERT_EQUAL(-EINVAL, + test_ethdev_config_run(&dev_conf, &info, + max_event_port_enqueue_depth), + "Config negative test failed"); + } /* Positive case */ devconf_set_default_sane_values(&dev_conf, &info); -- 2.18.0