[LTP] [PATCH] waitpid/waitpid10: break test if fork failed

Cyril Hrubis chrubis@suse.cz
Tue Apr 19 15:07:12 CEST 2016


Hi!
> @@ -330,6 +331,8 @@ int main(int ac, char **av)
>  				}
>  			}
>  
> +			memset(fork_kid_pid, 0, sizeof(fork_kid_pid));

If you memset the array here the test will fail since it's used in the
loop below to check the results.

And looking at the test code it's broken beyond repair. It would likely
be easier to rewrite it from scratch than trying to fix all problems it
has.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list