[PATCH v11 02/21] test/func_reentrancy: fix args to EAL init call
Bruce Richardson
bruce.richardson at intel.com
Thu Oct 9 15:00:37 CEST 2025
The unit test for EAL init was passing in a NULL argv[0] value which is
invalid. Update to have a valid string for argv[0].
Fixes: 104a92bd026f ("app: add reentrancy tests")
Fixes: 978ead0144c1 ("test/func_reentrancy: fix EAL init call")
Cc: stable at dpdk.org
Signed-off-by: Bruce Richardson <bruce.richardson at intel.com>
---
app/test/test_func_reentrancy.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/app/test/test_func_reentrancy.c b/app/test/test_func_reentrancy.c
index f4c6cbc548..51e3069611 100644
--- a/app/test/test_func_reentrancy.c
+++ b/app/test/test_func_reentrancy.c
@@ -66,10 +66,11 @@ static RTE_ATOMIC(uint32_t) synchro;
* rte_eal_init only init once
*/
static int
-test_eal_init_once(void *arg)
+test_eal_init_once(__rte_unused void *arg)
{
+ char appname[] = __FILE__;
unsigned lcore_self = rte_lcore_id();
- char *argv[] = { arg, NULL };
+ char *argv[] = { appname, NULL };
WAIT_SYNCHRO_FOR_WORKERS();
--
2.48.1
More information about the stable
mailing list