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

Cyril Hrubis chrubis@suse.cz
Fri Feb 18 11:35:24 CET 2022


Hi!
> > 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.
> 
> I wonder can't we have both - print stringified parameters and also their
> values? Would it be too confusing?

Couldn't be done unless you know the types beforehand. I've send another
patch that adds TST_EXP_EQ_*() macros please have a look at that one
instead.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list