return TEST_SUCCESS;
}
+/* To test free the resources from bitrate_reg test */
+static int
+test_stats_bitrate_free(void)
+{
+ int ret = 0;
+
+ ret = rte_metrics_deinit();
+ TEST_ASSERT(ret >= 0, "Test Failed: rte_metrics_deinit failed");
+
+ return TEST_SUCCESS;
+}
+
/* To test bit rate registration */
static int
test_stats_bitrate_reg(void)
*/
TEST_CASE_ST(test_bit_packet_forward, NULL,
test_stats_bitrate_calc),
+ /* TEST CASE 9: Test to do the cleanup w.r.t create */
+ TEST_CASE(test_stats_bitrate_free),
TEST_CASES_END()
}
};
ret = rte_latencystats_uninit();
TEST_ASSERT(ret >= 0, "Test Failed: rte_latencystats_uninit failed");
+ ret = rte_metrics_deinit();
+ TEST_ASSERT(ret >= 0, "Test Failed: rte_metrics_deinit failed");
+
return TEST_SUCCESS;
}