[LTP] [PATCH] test_macros: TST_EXP_EXPR() add auto stringification

Cyril Hrubis chrubis@suse.cz
Fri Feb 18 10:54:34 CET 2022


Hi!
> Reviewed-by: Petr Vorel <pvorel@suse.cz>
> Good idea.

It occured to me that this is probably not the best result though, since
in the case of the failure it does not print the expected and actual
value. So maybe it would be better to add TST_EXP_EQ() macro instead. I
will send a patch later on.

> BTW I'm thinking to add some comments to "top level" macros.
> because it's getting hard to read these macros.

Well yes, it's getting a bit hard to read indeed.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list