[LTP] [PATCH] lib: TST_EXP_FAIL: Fix the *_ARR_() macros

Petr Vorel pvorel@suse.cz
Wed Jan 17 12:07:44 CET 2024


Hi Cyril,

> This is basically the same fix as:
> d7e5e102364b (tst_test_macros.h: fix "too many arguments")

> The point is that the SCALL parameter has to be stringified in the first
> pass otherwise it ends up expandend and as long as it contains coma the
> number of parameters will increase breaking the printf() formatting
> again.

> Fixes: #1120

> Fixes: 1cfe61428982 ("lib: TST_EXP_FAIL: Add array variants")

Reported-by: Wei Gao <wegao@suse.com>
(missing credit)

Reviewed-by: Petr Vorel <pvorel@suse.cz>

Thanks quick fix, please merge!
I'm sorry, I haven't noticed the problem. tst_test_macros.h is getting quite
complex, maybe we should add some comments into the header.

Kind regards,
Petr


More information about the ltp mailing list