• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

MakefileD07-Feb-20253.8 KiB153107

READMED07-Feb-20252.7 KiB7266

atf-c.cD22-Nov-20192.7 KiB12999

atf-c.hD31-Dec-20223.6 KiB10670

h_macros.hD02-Sep-20212.7 KiB8947

macros.hD31-Dec-20211.7 KiB7747

t_access.cD31-Dec-20214.8 KiB214124

t_bind.cD19-Nov-20192.5 KiB8230

t_chroot.cD31-Dec-20216.8 KiB319204

t_clock_gettime.cD31-Dec-20216.3 KiB211115

t_connect.cD02-Sep-20214 KiB13677

t_dup.cD31-Dec-20218.2 KiB408276

t_fork.cD31-Dec-20219.6 KiB384280

t_fsync.cD31-Dec-20213.1 KiB12661

t_getgroups.cD31-Dec-20214.2 KiB17797

t_getitimer.cD31-Dec-20215.3 KiB216118

t_getlogin.cD31-Dec-20215 KiB239145

t_getpid.cD31-Dec-20213.1 KiB13672

t_getrusage.cD31-Dec-20216.5 KiB287186

t_getsid.cD31-Dec-20213 KiB12163

t_getsockname.cD19-Nov-20192.6 KiB8642

t_gettimeofday.cD31-Dec-20213.1 KiB10953

t_kevent.cD07-Feb-20256 KiB233160

t_kill.cD31-Dec-20216.3 KiB314183

t_link.cD31-Dec-20215.5 KiB231149

t_listen.cD19-Nov-20193.9 KiB14081

t_minherit.cD31-Dec-20214.7 KiB201147

t_mkdir.cD31-Dec-20215 KiB209123

t_mkfifo.cD31-Dec-20216.3 KiB307187

t_mknod.cD31-Dec-20214.7 KiB197119

t_mlock.cD31-Dec-20218.4 KiB330216

t_mmap.cD31-Dec-202114.1 KiB591384

t_msgctl.cD31-Dec-20218.5 KiB403268

t_msgget.cD31-Dec-20217.4 KiB338220

t_msgrcv.cD31-Dec-20218.3 KiB386262

t_msgsnd.cD31-Dec-20217.7 KiB382253

t_msync.cD31-Dec-20214.9 KiB226128

t_pipe.cD31-Dec-20214.3 KiB16378

t_pipe2.cD07-Feb-20255.3 KiB200125

t_poll.cD31-Dec-20225.7 KiB248159

t_pollts.cD02-Sep-20215.5 KiB204123

t_ppoll.cD02-Sep-20211.6 KiB352

t_ptrace.cD31-Dec-20216.6 KiB233156

t_recvmmsg.cD11-Sep-20225.5 KiB190131

t_revoke.cD31-Dec-20214.5 KiB199121

t_select.cD09-Nov-20205.1 KiB228167

t_sendmmsg.cD07-Feb-20256 KiB217161

t_sendrecv.cD07-Feb-20254.4 KiB190127

t_setrlimit.cD31-Dec-202111 KiB557369

t_setuid.cD31-Dec-20213.1 KiB12467

t_sigaction.cD31-Dec-20213.8 KiB15297

t_sigaltstack.cD31-Dec-20212.9 KiB10053

t_socketpair.cD31-Dec-20214 KiB13979

t_stat.cD07-Feb-20259.3 KiB421282

t_truncate.cD31-Dec-20224.5 KiB181110

t_umask.cD31-Dec-20214.2 KiB208130

t_unlink.cD07-Feb-20253.9 KiB16097

t_vfork.cD02-Sep-20211.5 KiB322

t_wait_noproc.cD31-Dec-20227.7 KiB356258

t_wait_noproc_wnohang.cD02-Sep-20211.6 KiB322

t_waitid.cD26-Oct-20227.3 KiB273208

t_write.cD31-Dec-20216.4 KiB283187

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_sigqueue		- not implemented, added in POSIX.1-2004
67t_sigtimedwait		- not implemented, added in POSIX.1-2004
68t_swapcontext		- not available, removed in POSIX.1-2008
69t_timer_create		- not implemented, added in POSIX.1-2004
70t_ucontext		- not available, removed in POSIX.1-2008
71t_wait			- wait6 is not available, not POSIX
72