NameDateSize

..17-Jun-202469

atf-c.cH A D23-Nov-20192.7 KiB

atf-c.hH A D12-Sep-20223.6 KiB

h_macros.hH A D03-Sep-20212.7 KiB

macros.hH A D14-Dec-20211.7 KiB

MakefileH A D01-Nov-20233.8 KiB

READMEH A D03-Sep-20212.8 KiB

t_access.cH A D14-Dec-20214.8 KiB

t_bind.cH A D19-Nov-20192.5 KiB

t_chroot.cH A D14-Dec-20216.8 KiB

t_clock_gettime.cH A D14-Dec-20216.3 KiB

t_connect.cH A D02-Sep-20214 KiB

t_dup.cH A D14-Dec-20218.2 KiB

t_fork.cH A D14-Dec-20219.6 KiB

t_fsync.cH A D14-Dec-20213.1 KiB

t_getgroups.cH A D14-Dec-20214.2 KiB

t_getitimer.cH A D14-Dec-20215.3 KiB

t_getlogin.cH A D14-Dec-20215 KiB

t_getpid.cH A D14-Dec-20213.1 KiB

t_getrusage.cH A D14-Dec-20216.5 KiB

t_getsid.cH A D14-Dec-20213 KiB

t_getsockname.cH A D19-Nov-20192.6 KiB

t_gettimeofday.cH A D14-Dec-20213.1 KiB

t_kevent.cH A D20-Apr-20236 KiB

t_kill.cH A D14-Dec-20216.3 KiB

t_link.cH A D14-Dec-20215.5 KiB

t_listen.cH A D19-Nov-20193.9 KiB

t_minherit.cH A D14-Dec-20214.7 KiB

t_mkdir.cH A D14-Dec-20215 KiB

t_mkfifo.cH A D14-Dec-20216.3 KiB

t_mknod.cH A D14-Dec-20214.7 KiB

t_mlock.cH A D14-Dec-20218.4 KiB

t_mmap.cH A D14-Dec-202114.1 KiB

t_msgctl.cH A D14-Dec-20218.5 KiB

t_msgget.cH A D14-Dec-20217.4 KiB

t_msgrcv.cH A D14-Dec-20218.3 KiB

t_msgsnd.cH A D14-Dec-20217.7 KiB

t_msync.cH A D14-Dec-20214.9 KiB

t_pipe.cH A D14-Dec-20214.3 KiB

t_pipe2.cH A D01-Nov-20235.3 KiB

t_poll.cH A D29-May-20225.7 KiB

t_pollts.cH A D02-Sep-20215.5 KiB

t_ppoll.cH A D02-Sep-20211.6 KiB

t_ptrace.cH A D14-Dec-20216.6 KiB

t_recvmmsg.cH A D12-Sep-20225.5 KiB

t_revoke.cH A D14-Dec-20214.5 KiB

t_select.cH A D10-Nov-20205.1 KiB

t_sendmmsg.cH A D28-Oct-20236 KiB

t_sendrecv.cH A D14-Dec-20214.4 KiB

t_setrlimit.cH A D14-Dec-202111 KiB

t_setuid.cH A D14-Dec-20213.1 KiB

t_sigaction.cH A D14-Dec-20213.8 KiB

t_sigaltstack.cH A D14-Dec-20212.9 KiB

t_socketpair.cH A D14-Dec-20214 KiB

t_stat.cH A D01-Nov-20239.3 KiB

t_truncate.cH A D24-May-20224.5 KiB

t_umask.cH A D14-Dec-20214.2 KiB

t_unlink.cH A D01-Nov-20233.9 KiB

t_vfork.cH A D02-Sep-20211.5 KiB

t_wait_noproc.cH A D20-Dec-20227.7 KiB

t_wait_noproc_wnohang.cH A D02-Sep-20211.6 KiB

t_waitid.cH A D26-Oct-20227.3 KiB

t_write.cH A D14-Dec-20216.4 KiB

README

1Regression tests for system calls ported from NetBSD.
2
3Reimplement ATF with many hacks to adjust the tests as little as possible.
4
5Tests passing without source file adjustments:
6t_access	t_getsockname	t_msgctl	t_sigaltstack
7t_bind		t_gettimeofday	t_msgsnd	t_socketpair
8t_conect	t_kill		t_msync		t_truncate
9t_getgroups	t_link		t_pipe		t_umask
10t_getitimer	t_listen	t_ppoll		t_write
11t_getlogin	t_minherit	t_sendrecv
12t_getpid	t_mkdir		t_setuid
13t_getsid	t_mkfifo	t_sigaction
14
15Tests passing after adjustments:
16t_chroot		- fchroot is not implemented
17t_clock_gettime		- requires sysctlbyname
18t_dup			- OpenBSD dup3 is similar to Linux dup3
19t_fork			- add reallocarr function, remove clone(2) tests
20t_fsync			- replace mkstemp
21t_getrusage		- no expected fail, PR kern/30115 is NetBSD, work more
22t_kevent		- no EVFILT_USER, DRVCTLDEV, passing kqueue forbidden
23t_mknod 		- remove tests for unsupported file types
24t_msgget		- remove msgget_limit test
25t_poll 			- remove pollts_* tests
26t_ptrace 		- change EPERM -> EINVAL for PT_ATTACH of a parent
27t_revoke 		- remove basic tests, revoke only on ttys supported
28t_select 		- remove sigset_t struct as it is int on OpenBSD
29t_setrlimit		- remove unsupported resource parameters and lwp
30t_syscall		- add __syscall prototype
31t_vfork			- SIGSTOP is masked before exec(3)/exit(3)
32t_wait_noproc		- waitid and wait6 are not implemented
33t_wait_noproc_wnohang	- waitid and wait6 are not implemented
34
35Failing tests:
36t_mlock		- wrong errno, succeeds where not expected, POSIX imprecise
37t_mmap		- ENOTBLK on test NetBSD is skipping, remove mmap_va0 test
38t_msgrcv	- msgrcv(id, &r, 3 - 1, 0x41, 004000) != -1
39t_pipe2 	- closefrom(4) == -1, remove F_GETNOSIGPIPE and nosigpipe test
40t_stat 		- invalid GID with doas
41t_unlink	- wrong errno according to POSIX
42
43Excluded tests:
44t_clock_nanosleep	- not available
45t_clone			- not available
46t_futex_ops		- no lwp
47t_futex_robust		- no lwp
48t_getcontext		- not available, removed in POSIX.1-2008
49t_getrandom		- not available
50t_issetugid		- works as iplemented
51t_lwp_create		- not available
52t_lwp_ctl		- not available
53t_mincore		- removed
54t_mprotect		- no exec_prot_support and no return_one in libc
55t_nanosleep		- not available
56t_pollts		- not available
57t_posix_fadvise		- optional POSIX Advisory Information
58t_posix_fallocate	- optional POSIX Advisory Information
59t_ptrace_sigchld	-
60t_ptrace_wait		-
61t_ptrace_wait3		-
62t_ptrace_wait4		-
63t_ptrace_wait6		- not implemented
64t_ptrace_waitid		-
65t_ptrace_waitpid	-
66t_recvmmsg		- not implemented, not POSIX
67t_sendmmsg		- not implemented, not POSIX
68t_sigqueue		- not implemented, added in POSIX.1-2004
69t_sigtimedwait		- not implemented, added in POSIX.1-2004
70t_swapcontext		- not available, removed in POSIX.1-2008
71t_timer_create		- not implemented, added in POSIX.1-2004
72t_ucontext		- not available, removed in POSIX.1-2008
73t_wait			- wait6 is not available, not POSIX
74