]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
tests/fdgrowtable: perform the threaded test in a child process
authorGleb Smirnoff <glebius@FreeBSD.org>
Sat, 24 Feb 2024 01:49:53 +0000 (17:49 -0800)
committerGleb Smirnoff <glebius@FreeBSD.org>
Sat, 24 Feb 2024 01:49:53 +0000 (17:49 -0800)
commit4c6ceca9cc44fc9b02dc39e80713f2ad3ab8eeb6
tree193119bd4983543a8372f3e22b4842da533f75f2
parent98ef51d549064318c1cdc9cbea7cf499b9a1d34b
tests/fdgrowtable: perform the threaded test in a child process

The test needs to be performed in a new process that was forked with
RFCFDG flag.  The will guarantee that the table will start to grow from 20
file descriptors, no matter what kyua(1) or a bare shell was doing before
executing this test.  This should fix  repetitive test runs from a shell
as well as failures with kyua(1) in some environments.
tests/sys/kern/fdgrowtable_test.c