[LTP] [PATCH] syscalls/fork02: new test for fork()
Richard Palethorpe
rpalethorpe@suse.de
Mon Nov 7 11:49:32 CET 2022
Hello,
Zhao Gongyi via ltp <ltp@lists.linux.it> writes:
> Verify that current workdir correctly inherited by child.
I'm not convinced by Cyrils comments that this should be included. I
doubt LTP would work if the CWD wasn't inherited by children. At least
in the common case. The test needs to do something more IMO.
Perhaps there has been a kernel bug involving fork and CWD? Perhaps
relating to new file systems and mount options. I doubt we will see
issues on a common setup. This isn't adding any test coverage in that
case.
Also the path to the CWD and the CWD are two different things. The
kernel generates the path on each invocation of getcwd IIRC.
Marking this as changes requested in patchwork. Although really, I think
effort should be directed at clone3 which is lacking a lot of coverage.
--
Thank you,
Richard.
More information about the ltp
mailing list