[LTP] [PATCH v1] Support return value in TST_* macros

Cyril Hrubis chrubis@suse.cz
Wed Apr 26 10:38:00 CEST 2023


Hi!
> The reason is that I didn't want to handle every "break". To return 
> TST_RET after TST_EXP_POSITIVE_ seemed like a cleaner option.

We can always add another indirection, rename the TST_EXP_POSITIVE_ to
TST_EXP_POSITIVE__ and

#define TST_EXP_POSITIVE_(SCALL, SSCALL, ...) ({
		TST_EXP_POSITIVE__(SCALL, SSCALL, ...);
		TST_RET;
	})

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list