[LTP] [PATCH] tst_test_macros: Avoid re-evaluating arguments in TST_EXP_{EQ, LE}_*()
Wake Liu
wakel@google.com
Tue Nov 24 09:42:40 CET 2026
Hi Cyril, Andrea, Petr,
Gentle ping on this patch:
https://patchwork.kernel.org/project/ltp/patch/20261113134113.2822581-1-wakel@google.com/
Please let me know if you have any comments.
Thanks,
Wake
On Fri, Nov 13, 2026 at 01:41:13PM +0000, Wake Liu wrote:
> Commit 1759ad9f3f0b ("Add silent macros for TST_EXP_EQ_*") split the
> TPASS message out of TST_EXP_EQ_SILENT_() and printed VAL_A directly in
> TST_EXP_EQ_LI(), TST_EXP_EQ_LU(), TST_EXP_EQ_SZ() and TST_EXP_EQ_SSZ()
> because tst_tmp_a__ was no longer in scope. As a result, VAL_A is
> evaluated a second time whenever the check passes. Commit 1b0395338108
> ("tst_test_macros: Add TST_EXP_LE_LU*()") followed the same pattern and
> evaluates both VAL_A and VAL_B a second time on TPASS.
More information about the ltp
mailing list