From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9E2ABA0528; Sat, 11 Jul 2020 10:33:12 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id AFFA81DA1C; Sat, 11 Jul 2020 10:33:08 +0200 (CEST) Received: from inva021.nxp.com (inva021.nxp.com [92.121.34.21]) by dpdk.org (Postfix) with ESMTP id 449BA1D626 for ; Sat, 11 Jul 2020 10:33:06 +0200 (CEST) Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 2CFA02004C6; Sat, 11 Jul 2020 10:33:06 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id D7F95200854; Sat, 11 Jul 2020 10:33:04 +0200 (CEST) Received: from bf-netperf1.ap.freescale.net (bf-netperf1.ap.freescale.net [10.232.133.63]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id B1D26402AE; Sat, 11 Jul 2020 16:33:02 +0800 (SGT) From: Hemant Agrawal To: dev@dpdk.org Cc: Hemant Agrawal Date: Sat, 11 Jul 2020 13:58:46 +0530 Message-Id: <20200711082846.10238-2-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200711082846.10238-1-hemant.agrawal@nxp.com> References: <20200514093001.12007-1-hemant.agrawal@nxp.com> <20200711082846.10238-1-hemant.agrawal@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Subject: [dpdk-dev] [PATCH v3 2/2] test: add support for testing bitrate stats free 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" This patch adds support to test rte_stats_bitrate_free Signed-off-by: Hemant Agrawal --- app/test/test_bitratestats.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/test/test_bitratestats.c b/app/test/test_bitratestats.c index 39d7f734d4..fd4e949642 100644 --- a/app/test/test_bitratestats.c +++ b/app/test/test_bitratestats.c @@ -32,12 +32,14 @@ test_stats_bitrate_create(void) return TEST_SUCCESS; } -/* To test free the resources from bitrate_reg test */ +/* To test free the resources from bitrate_create test */ static int test_stats_bitrate_free(void) { int ret = 0; + rte_stats_bitrate_free(bitrate_data); + ret = rte_metrics_deinit(); TEST_ASSERT(ret >= 0, "Test Failed: rte_metrics_deinit failed"); -- 2.17.1