On Tue, 12 Dec 2023 06:25:12 +0200 Artemy Kovalyov <[email protected]> wrote:
> +rte_atomic32_t g_count;
> +
> +static int
> +done(const struct rte_mp_msg *msg __rte_unused, const void *arg __rte_unused)
> +{
> + rte_atomic32_dec(&g_count);
> + return 0;
> +}
Local variable, should be static.
Also, assert may not be the ideal way to report test failures.
The preferred way would be to use RTE_TEST_ASSERT() and RTE_TEST_ASSERT_EQUAL()

