1a545a52cSbluhmRegression tests for system calls ported from NetBSD. 2a545a52cSbluhm 3a545a52cSbluhmReimplement ATF with many hacks to adjust the tests as little as possible. 4a545a52cSbluhm 5a545a52cSbluhmTests passing without source file adjustments: 6abbaa274Smbuhlt_access t_getsockname t_msgctl t_sigaltstack 7abbaa274Smbuhlt_bind t_gettimeofday t_msgsnd t_socketpair 8abbaa274Smbuhlt_conect t_kill t_msync t_truncate 9abbaa274Smbuhlt_getgroups t_link t_pipe t_umask 10abbaa274Smbuhlt_getitimer t_listen t_ppoll t_write 11abbaa274Smbuhlt_getlogin t_minherit t_sendrecv 12abbaa274Smbuhlt_getpid t_mkdir t_setuid 13abbaa274Smbuhlt_getsid t_mkfifo t_sigaction 14a545a52cSbluhm 15a545a52cSbluhmTests passing after adjustments: 16a545a52cSbluhmt_chroot - fchroot is not implemented 17a545a52cSbluhmt_clock_gettime - requires sysctlbyname 18a545a52cSbluhmt_dup - OpenBSD dup3 is similar to Linux dup3 19abbaa274Smbuhlt_fork - add reallocarr function, remove clone(2) tests 20a545a52cSbluhmt_fsync - replace mkstemp 21a545a52cSbluhmt_getrusage - no expected fail, PR kern/30115 is NetBSD, work more 22abbaa274Smbuhlt_kevent - no EVFILT_USER, DRVCTLDEV, passing kqueue forbidden 23a545a52cSbluhmt_mknod - remove tests for unsupported file types 24a545a52cSbluhmt_msgget - remove msgget_limit test 25a545a52cSbluhmt_poll - remove pollts_* tests 26e0b87bf8Smpit_ptrace - change EPERM -> EINVAL for PT_ATTACH of a parent 27a545a52cSbluhmt_revoke - remove basic tests, revoke only on ttys supported 28a545a52cSbluhmt_select - remove sigset_t struct as it is int on OpenBSD 29abbaa274Smbuhlt_setrlimit - remove unsupported resource parameters and lwp 30abbaa274Smbuhlt_syscall - add __syscall prototype 31*c32913b7Smbuhlt_vfork - SIGSTOP is masked before exec(3)/exit(3) 32abbaa274Smbuhlt_wait_noproc - waitid and wait6 are not implemented 33abbaa274Smbuhlt_wait_noproc_wnohang - waitid and wait6 are not implemented 34a545a52cSbluhm 35a545a52cSbluhmFailing tests: 36a545a52cSbluhmt_mlock - wrong errno, succeeds where not expected, POSIX imprecise 37a545a52cSbluhmt_mmap - ENOTBLK on test NetBSD is skipping, remove mmap_va0 test 38a545a52cSbluhmt_msgrcv - msgrcv(id, &r, 3 - 1, 0x41, 004000) != -1 39a545a52cSbluhmt_pipe2 - closefrom(4) == -1, remove F_GETNOSIGPIPE and nosigpipe test 40a545a52cSbluhmt_stat - invalid GID with doas 41a545a52cSbluhmt_unlink - wrong errno according to POSIX 42a545a52cSbluhm 43a545a52cSbluhmExcluded tests: 44a545a52cSbluhmt_clock_nanosleep - not available 45a545a52cSbluhmt_clone - not available 46abbaa274Smbuhlt_futex_ops - no lwp 47abbaa274Smbuhlt_futex_robust - no lwp 48abbaa274Smbuhlt_getcontext - not available, removed in POSIX.1-2008 49abbaa274Smbuhlt_getrandom - not available 50abbaa274Smbuhlt_issetugid - works as iplemented 51a545a52cSbluhmt_lwp_create - not available 52a545a52cSbluhmt_lwp_ctl - not available 53a545a52cSbluhmt_mincore - removed 54abbaa274Smbuhlt_mprotect - no exec_prot_support and no return_one in libc 55a545a52cSbluhmt_nanosleep - not available 56abbaa274Smbuhlt_pollts - not available 57abbaa274Smbuhlt_posix_fadvise - optional POSIX Advisory Information 58abbaa274Smbuhlt_posix_fallocate - optional POSIX Advisory Information 59abbaa274Smbuhlt_ptrace_sigchld - 60a545a52cSbluhmt_ptrace_wait - 61a545a52cSbluhmt_ptrace_wait3 - 62a545a52cSbluhmt_ptrace_wait4 - 63a545a52cSbluhmt_ptrace_wait6 - not implemented 64a545a52cSbluhmt_ptrace_waitid - 65a545a52cSbluhmt_ptrace_waitpid - 66abbaa274Smbuhlt_sigqueue - not implemented, added in POSIX.1-2004 67abbaa274Smbuhlt_sigtimedwait - not implemented, added in POSIX.1-2004 68abbaa274Smbuhlt_swapcontext - not available, removed in POSIX.1-2008 69abbaa274Smbuhlt_timer_create - not implemented, added in POSIX.1-2004 70abbaa274Smbuhlt_ucontext - not available, removed in POSIX.1-2008 71abbaa274Smbuhlt_wait - wait6 is not available, not POSIX 72