[LTP] [PATCH] pipe10.c: Rewrite the test using new LTP API

Petr Vorel pvorel@suse.cz
Fri Jul 14 13:15:15 CEST 2023


Hi Avinesh,

> +	int pid;
...
> +	pid = SAFE_FORK();

...
> +	if (pid == 0) {
Because pid is not needed for anything else, I just changed this to:
	if (!SAFE_FORK()) {

and merged.

Thank you!

Kind regards,
Petr

> +		rd_cnt = SAFE_READ(1, fds[0], rdbuf, wr_cnt);
> +		TST_EXP_EQ_LU(wr_cnt, rd_cnt);


More information about the ltp mailing list