freebsd-src/tests/sys/kern
Gleb Smirnoff fa6a02f50e tests/fdgrowtable: open more files in the threaded case
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.
2024-02-20 14:31:06 -08:00
..
acct tests: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
execve Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
pipe tests: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
basic_signal.c
coredump_phnum_helper.c
coredump_phnum_test.sh Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
fdgrowtable_test.c tests/fdgrowtable: open more files in the threaded case 2024-02-20 14:31:06 -08:00
kcov.c tests: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
kern_copyin.c tests: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
kern_descrip_test.c tests: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
kill_zombie.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
ktls_test.c ktls tests: Relax error checking for shutdown(2) a bit 2023-11-17 09:31:21 -05:00
libkern_crc32.c
listener_wakeup.c socket tests: add listener_wakeup 2024-02-15 10:48:44 -08:00
Makefile socket tests: add listener_wakeup 2024-02-15 10:48:44 -08:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.inc Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
module_test.c
pdeathsig.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
pdeathsig_helper.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
ptrace_test.c tests: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
reaper.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
sched_affinity.c tests: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
sendfile_helper.c
sendfile_test.sh tests: don't run atf_* in a subshell 2023-11-27 13:15:59 -08:00
shutdown_dgram.c tests: fix typo in a comment 2024-01-25 22:19:59 -08:00
sigaltstack.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
sigsys.c tests: Test that SIGSYS is not delivered if kern.signosys knob is off 2023-10-03 10:38:02 +03:00
sigwait.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
socket_accept.c sockets: don't malloc/free sockaddr memory on accept(2) 2023-11-30 08:30:55 -08:00
socket_accf.c
socket_msg_trunc.c socket_msg_trunc: allocate a large enough buffer 2024-01-09 22:59:29 +00:00
socket_msg_waitall.c socket tests: improve error message 2024-02-01 13:37:26 -08:00
sonewconn_overflow.py Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
sonewconn_overflow.sh Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
subr_physmem_test.c tests: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
sys_getrandom.c tests: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
sysctl_kern_proc.c
tty_pts.c kern: pts: do not special case closed slave side 2024-01-15 20:55:59 -06:00
unix_dgram.c
unix_passfd_dgram.c
unix_passfd_stream.c
unix_passfd_test.c tests/unix_passfd: add a comment for send_a_lot 2024-02-08 09:00:41 -08:00
unix_seqpacket_test.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
unix_socketpair_test.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
waitpid_nohang.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00