opnsense-src/tests/sys/kern
Alexander V. Chernikov f28532a0f3 tests: fix unix_passfd_dgram:rights_creds_payload after be1f485d7d
The test was failing due to the assert on lack of MSG_TRUNC flag in the
 output flags of recvmsg().
The code passed MSG_TRUNC, along with sufficient-size buffer to hold the
 message to-be-received to the recvmsg(), and expected MSG_TRUNC to be
 returned as well.

This is not exactly correct as a) MSG_TRUNC was not even a supported
 recvmsg() flag before be1f485d7d and b) it violates POSIX, as
 POSIX states it should be set only "If a message is too long to fit in
 the supplied buffers,".
The test was working before as the kernel copied input flags to the
 output flags. be1f485d7d changed that behaviour to clear MSG_TRUNC
 if it was present on the input.

Fix the test by checking POSIX-defined behaviour.

Discussed with:	glebius
2022-08-01 09:20:45 +00:00
..
acct DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
execve tests: add a basic test for argc == 0 2022-01-26 13:40:27 -06:00
pipe Do a sweep and remove most WARNS=6 settings 2020-10-01 01:10:51 +00:00
basic_signal.c Stop single stepping in signal handers on arm64 2022-02-07 15:03:23 +00:00
coredump_phnum_helper.c Have the coredump_phnum test ask for the page size 2022-04-07 15:59:32 +01:00
coredump_phnum_test.sh coredump_phnum_test: handle full file system gracefully 2019-10-11 21:23:46 +00:00
fdgrowtable_test.c fdgrowtable_test.c: appease gcc 2020-12-11 22:52:16 +00:00
kcov.c Remove PAGE_SIZE from the kcov tests 2022-06-17 10:43:30 +01:00
kern_copyin.c Implement shared page address randomization 2022-07-18 16:27:37 +02:00
kern_descrip_test.c Fix problems in the kern_maxfiles__increase test 2019-10-08 13:43:05 +00:00
kill_zombie.c Add a test for kill() on a zombie 2019-08-06 21:17:22 +00:00
ktls_test.c ktls_test: Permit an option to skip tests not using ifnet TLS. 2022-06-14 10:35:01 -07:00
libkern_crc32.c tests/sys/kern/crc32: Check for SSE4.2 before using it 2021-02-02 09:53:39 +00:00
Makefile sockets: add MSG_TRUNC flag handling for recvfrom()/recvmsg(). 2022-07-30 18:21:51 +00:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
Makefile.inc
module_test.c module_test: Fix some assignments to errno intended to be tests. 2022-03-14 14:05:05 -07:00
pdeathsig.c sys.kern.pdeathsig.signal_delivered_ptrace: fix startup. 2019-08-19 09:33:09 +00:00
pdeathsig_helper.c Rename PROC_PDEATHSIG_SET -> PROC_PDEATHSIG_CTL and PROC_PDEATHSIG_GET 2018-04-20 15:19:27 +00:00
ptrace_test.c Add NT_ARM_ADDR_MASK 2022-02-22 17:10:35 +00:00
reaper.c Reparent a child of pdfork(2) to its reaper when the procdesc is closed. 2018-10-16 20:06:56 +00:00
sched_affinity.c tests: Get rid of invalid since 3e11d3f6 testcase 2022-05-12 22:14:41 +03:00
sendfile_helper.c add a few tests for sendfile. 2020-07-20 20:36:32 +00:00
sendfile_test.sh kyua/qemu: When running in qemu, don't teset sendfile 2022-02-02 14:27:51 -07:00
sigaltstack.c Maybe make gcc happy 2018-11-30 23:47:57 +00:00
sigwait.c Fix build after 128b9bf9 2022-04-25 14:45:05 +03:00
socket_msg_trunc.c sockets: add MSG_TRUNC flag handling for recvfrom()/recvmsg(). 2022-07-30 18:21:51 +00:00
sonewconn_overflow.py Clear the dmesg buffer to prevent rotating causes issues 2020-10-06 04:18:42 +00:00
sonewconn_overflow.sh Add a regression test for the changes in r359922 and r359923. 2020-04-16 20:07:34 +00:00
subr_physmem_test.c Handle non-page aligned/sized memory in physmem 2022-04-06 14:13:29 +01:00
sys_getrandom.c Appease GCC 4.2 2018-03-21 04:44:19 +00:00
sysctl_kern_proc.c tests: Add some regression tests for a couple of KERN_PROC_* sysctls 2021-12-17 13:10:52 -05:00
unix_dgram.c unix/dgram: smart socket buffers for one-to-many sockets 2022-06-24 09:09:11 -07: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 tests: fix unix_passfd_dgram:rights_creds_payload after be1f485d7d 2022-08-01 09:20:45 +00:00
unix_seqpacket_test.c
unix_socketpair_test.c Drop "All rights reserved" from the files I own 2019-03-11 22:23:56 +00:00
waitpid_nohang.c