[LTP] [PATCH] syscalls/fork02: new test for fork()

Cyril Hrubis chrubis@suse.cz
Wed Nov 2 10:06:32 CET 2022


Hi!
> > > Man-pages does not menthion this, and the other field inherited does
> > not mentioned too.
> > 
> > I guess that this is described in POSIX in:
> > 
> > "The new process (child process) shall be an exact copy of the calling
> > process (parent process) except as detailed below:"
> > 
> > at https://pubs.opengroup.org/onlinepubs/9699919799/
> > 
> > And there is nothing about working dir in the list of special cases hence
> > working dir is exactly the same as for parent since it has to be exact copy
> > of parent.
> > 
> 
> It seems reasonable to not test the result of full inheritance from the parent process, otherwise there are a lot of testcases.

Certainly the interesting part would be testing all the exceptions, but
having one test that checks a few things that are supposed to be the
same wouldn't harm either.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list