[LTP] [PATCH v1] Refactor fork09 using new LTP API
Cyril Hrubis
chrubis@suse.cz
Thu Nov 2 13:52:03 CET 2023
Hi!
> Honestly I'm struggling to understand the point of this test, the
> description says:
>
> "Check that child has access to a full set of files"
>
> What is that supposed to mean? I guess that if we wanted to check that
> the child has inherited the file descriptors ee should open a few files,
> do some changes in the child/parent and check that they are not propagated to
> the other one. I.e. reading from a file in child/parent does not change
> file offset in parent. Closing a file descriptor from a child/parent
And I tend to forget that the file offset is shared between child and
parent in this case. Maybe it's because I want to forget about that
particular detail to begin with.
And the test fork10.c actually checks the offset case, so I have no idea
what to do with fork09.c test. Maybe we should just delete the test and
write new for something that is not currently tested, there is plenty of
Linux-specific behavior listed in fork(2) man page that is not tested at
all...
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list