From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 964A51AEEE for ; Wed, 20 Sep 2017 17:22:20 +0200 (CEST) Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga105.fm.intel.com with ESMTP; 20 Sep 2017 08:22:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.42,421,1500966000"; d="scan'208";a="153561615" Received: from txasoft-yocto.an.intel.com (HELO txasoft-yocto.an.intel.com.) ([10.123.72.111]) by fmsmga005.fm.intel.com with ESMTP; 20 Sep 2017 08:22:19 -0700 From: Gage Eads To: dev@dpdk.org Cc: jerin.jacob@caviumnetworks.com, harry.van.haaren@intel.com Date: Wed, 20 Sep 2017 10:21:03 -0500 Message-Id: <1505920863-14826-4-git-send-email-gage.eads@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1505920863-14826-1-git-send-email-gage.eads@intel.com> References: <1505920863-14826-1-git-send-email-gage.eads@intel.com> Subject: [dpdk-dev] [PATCH 3/3] test/eventdev: fix bug in port enqueue depth 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, 20 Sep 2017 15:22:21 -0000 The enqueue depth test was comparing the port's dequeue depth against its enqueue depth. Fixes: 410c5bccdadc ("eventdev: add port attribute function") Signed-off-by: Gage Eads --- test/test/test_eventdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test/test_eventdev.c b/test/test/test_eventdev.c index 5fd0357..0e8bd7d 100644 --- a/test/test/test_eventdev.c +++ b/test/test/test_eventdev.c @@ -649,7 +649,7 @@ test_eventdev_port_attr_enqueue_depth(void) TEST_ASSERT_EQUAL(rte_event_port_attr_get(TEST_DEV_ID, 0, RTE_EVENT_PORT_ATTR_ENQ_DEPTH, &value), 0, "Call to get port enqueue depth failed"); - TEST_ASSERT_EQUAL(value, pconf.dequeue_depth, + TEST_ASSERT_EQUAL(value, pconf.enqueue_depth, "Wrong port enqueue depth"); return TEST_SUCCESS; -- 2.7.4