opnsense-src/tests/sys/kern
Mark Johnston 34c7691f53 ktls tests: Relax error checking for shutdown(2) a bit
In my test suite runs I occasionally see shutdown(2) fail with
ECONNRESET rather than ENOTCONN.  soshutdown(2) will return ENOTCONN if
the socket has been disconnected (synchronized by the socket lock), and
tcp_usr_shutdown() will return ECONNRESET if the inpcb has been dropped
(synchronized by the inpcb lock).  I think it's possible to pass the
first check in soshutdown() but fail the second check in
tcp_usr_shutdown(), so modify the KTLS tests to permit this.

Reviewed by:	jhb
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D42277

(cherry picked from commit b08a9b86f581edf09c5a2729d877a0204499685b)
2023-11-24 11:37:46 -05:00
..
acct Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
execve Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
pipe Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
basic_signal.c Reenable basic_signal:trap_signal_test on i386 2022-08-25 12:09:00 +08:00
coredump_phnum_helper.c Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
coredump_phnum_test.sh Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
fdgrowtable_test.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
kcov.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
kern_copyin.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
kern_descrip_test.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06: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-24 11:37:46 -05:00
libkern_crc32.c Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
Makefile tests: Test that SIGSYS is not delivered if kern.signosys knob is off 2023-10-10 08:12:12 +03: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 module_test: Fix some assignments to errno intended to be tests. 2022-03-14 14:05:05 -07:00
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 Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
reaper.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
sched_affinity.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
sendfile_helper.c Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
sendfile_test.sh Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06: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-10 08:12:12 +03:00
sigwait.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
socket_accf.c tests/socket: add accept_filter(9) test 2022-08-08 14:10:18 -07:00
socket_msg_trunc.c socket tests: Build fix 2023-10-24 10:28:11 -04:00
socket_msg_waitall.c socket tests: Add a regression test for MSG_WAITALL 2023-09-27 08:33:24 -04: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 Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
sys_getrandom.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
sysctl_kern_proc.c spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
unix_dgram.c unix tests: Add a regression test for getpeername(2) 2023-06-21 14:39:36 -04:00
unix_passfd_dgram.c tests/unix_passfd: compile SOCK_STREAM and SOCK_DGRAM versions 2022-06-24 09:09:11 -07:00
unix_passfd_stream.c tests/unix_passfd: compile SOCK_STREAM and SOCK_DGRAM versions 2022-06-24 09:09:11 -07:00
unix_passfd_test.c unix tests: Use the right type for sendmsg(2) return values 2023-09-27 08:32:49 -04: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