[PATCH v11 0/6] tests: enable format-overflow and fix warnings

Stephen Hemminger
2026-01-17T02:38:25Z

This series fixes compiler warnings in unit tests about
format truncation. It also refactor some the related tests
to be cleaner and use standard API's.

v11 - rebase to main

v10 - fix on FreeBSD
- rebase for 26.03

Stephen Hemminger (6):
test: increase size of memzone name
test: add new function to get current file-prefix arg
test: avoid overflowing huge directory path
test: fix format overflow warning in ACL test
test: fix impossible format-truncation in cfgfiles
test: fix format overflow in cryptodev test

app/test/process.h | 44 +++++--
app/test/test_cfgfile.c | 8 +-
app/test/test_cryptodev.c | 22 +++-
app/test/test_eal_flags.c | 264 +++++++++++++-------------------------
app/test/test_memzone.c | 2 +-
app/test/test_table_acl.c | 30 ++---
6 files changed, 157 insertions(+), 213 deletions(-)

--
2.51.0