Acked-by: Marat Khalili <[email protected]>
> -----Original Message----- > From: Weijun Pan <[email protected]> > Sent: Monday 27 April 2026 18:17 > Cc: [email protected]; Weijun Pan <[email protected]> > Subject: [PATCH v2] test: parenthesize assertion macro parameters > > Some test assertion macros use parameters directly in expressions, > which can lead to unexpected evaluation due to operator precedence > after macro substitution. > > Fix this by parenthesizing macro parameters and the resulting > expressions in rte_test.h and app/test/test.h. > > This is a test macro robustness fix and does not fix a runtime issue > in DPDK, so no Fixes or stable tags are added. > > Bugzilla ID: 1925 > > Signed-off-by: Weijun Pan <[email protected]> > > --- > v2: > - Remove unnecessary parentheses surrounded by commas > - Keep parenthesize substitutions even in unambiguous places in rte_test.h > to maintain coding style: parenthesize a condition > - Keep msg unparenthesized to preserve string literal concatenation > --- > app/test/test.h | 30 +++++++++++++++--------------- > lib/eal/include/rte_test.h | 12 ++++++------ > 2 files changed, 21 insertions(+), 21 deletions(-) >

