[v3,2/2] test: add support for testing bitrate stats free

Message ID 20200711082846.10238-2-hemant.agrawal@nxp.com (mailing list archive)
State Accepted, archived
Delegated to: Thomas Monjalon
Headers
Series [v3,1/2] bitratestats: add support for free |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/travis-robot success Travis build: passed
ci/Intel-compilation success Compilation OK

Commit Message

Hemant Agrawal July 11, 2020, 8:28 a.m. UTC
  This patch adds support to test rte_stats_bitrate_free

Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
---
 app/test/test_bitratestats.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
  

Patch

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");