[PATCHv2,2/2] test: add support for testing bitrate stats free
diff mbox series

Message ID 20200514093001.12007-2-hemant.agrawal@nxp.com
State Superseded, archived
Delegated to: Thomas Monjalon
Headers show
Series
  • [PATCHv2,1/2] bitratestats: add support for free
Related show

Checks

Context Check Description
ci/Intel-compilation fail apply issues
ci/checkpatch success coding style OK

Commit Message

Hemant Agrawal May 14, 2020, 9:30 a.m. UTC
This patch adds support to test rte_stats_bitrate_free

Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
---
This patch depends on : https://patches.dpdk.org/patch/70155/

 app/test/test_bitratestats.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

Patch
diff mbox series

diff --git a/app/test/test_bitratestats.c b/app/test/test_bitratestats.c
index 39d7f734d4..c14d32e037 100644
--- a/app/test/test_bitratestats.c
+++ b/app/test/test_bitratestats.c
@@ -32,12 +32,15 @@  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;
 
+	ret = rte_stats_bitrate_free(bitrate_data);
+	TEST_ASSERT(ret >= 0, "rte_stats_bitrate_free failed");
+
 	ret = rte_metrics_deinit();
 	TEST_ASSERT(ret >= 0, "Test Failed: rte_metrics_deinit failed");