[LTP] [PATCH v1] syscalls/acct02: Fix wrongfully failing sometimes

Petr Vorel pvorel@suse.cz
Thu Jun 20 09:47:03 CEST 2019


Hi Christian,

> On some systems the process calling acct() has to end before
> process accounting is started. This caused the original test
> to fail on those systems.
> This fix forks a child process to call acct() in order to
> activate process accounting before running the test program.

> Signed-off-by: Christian Amann <camann@suse.com>

Reviewed-by: Petr Vorel <pvorel@suse.cz>

Thanks for you patch. Could you be please more specific?
(which kernel version / glibc)

I'm testing it on various distros, all have struct acct_v3 and all fail
(regardless this patch):
FAIL: acct() wrote incorrect file contents!

Kind regards,
Petr


More information about the ltp mailing list