[LTP] [PATCH v4 4/5] syscalls/clone06: Convert to new API

Cyril Hrubis chrubis@suse.cz
Wed Oct 27 15:26:52 CEST 2021


Hi!
> +	const char *env_val = getenv(ENV_ID);
> +	if (!env_val) {
> +		tst_res(TFAIL, "Variable " ENV_ID " not defined in child");
> +		exit(-1);

I've changed these two exit(-1) in child to just exit(0), since the test
result is propagated automatically (by the tst_res(TFAIL, ...) call) and
the child shouldn't do anything else than exit(0).

And pushed, thanks.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list