mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
![]() This should fix the test failing on some machines/conditions/runs. This won't fix failures in standalone run, but should fix kyua(1) runs. Currently with standalone run it will usually fail because the 40-sized allocation is skipped (see details below). This matches what forking test does: open 128 files in the parent and 128 in the child. There should actually be no difference where and when the files are open, but let's mimic the forking test, and open more files in the spawned thread. Also opening from two different contexts adds a bit more entropy to the test. What the test does it checks that fdgrowtable() has been called at least three tmes for the test process, and the old tables are still on the free list as long as other execution contexts exist. Under kyua(1) control the first call grows the table from 20 to 40, but the original table of 20 is an embedded one, thus is not put on the free list. Passing 40 open files the table grows to 128 and first old table lands on the free list. Passing 128 open file the table grows to 256 and a second old table lands on the free list. After that the test would pass. The threaded test was one open file off before this fix sometimes. |
||
---|---|---|
.. | ||
acct | ||
execve | ||
pipe | ||
basic_signal.c | ||
coredump_phnum_helper.c | ||
coredump_phnum_test.sh | ||
fdgrowtable_test.c | ||
kcov.c | ||
kern_copyin.c | ||
kern_descrip_test.c | ||
kill_zombie.c | ||
ktls_test.c | ||
libkern_crc32.c | ||
listener_wakeup.c | ||
Makefile | ||
Makefile.depend | ||
Makefile.inc | ||
module_test.c | ||
pdeathsig.c | ||
pdeathsig_helper.c | ||
ptrace_test.c | ||
reaper.c | ||
sched_affinity.c | ||
sendfile_helper.c | ||
sendfile_test.sh | ||
shutdown_dgram.c | ||
sigaltstack.c | ||
sigsys.c | ||
sigwait.c | ||
socket_accept.c | ||
socket_accf.c | ||
socket_msg_trunc.c | ||
socket_msg_waitall.c | ||
sonewconn_overflow.py | ||
sonewconn_overflow.sh | ||
subr_physmem_test.c | ||
sys_getrandom.c | ||
sysctl_kern_proc.c | ||
tty_pts.c | ||
unix_dgram.c | ||
unix_passfd_dgram.c | ||
unix_passfd_stream.c | ||
unix_passfd_test.c | ||
unix_seqpacket_test.c | ||
unix_socketpair_test.c | ||
waitpid_nohang.c |