diff options
| author | bluhm <> | 2019-11-19 19:57:04 +0000 |
|---|---|---|
| committer | bluhm <> | 2019-11-19 19:57:04 +0000 |
| commit | 9185f840eda265016178aeb0dcdba964f8f6f3e2 (patch) | |
| tree | da100b3712514c566fe948116f7926ad7f725401 /src/regress/lib/libc/sys/README | |
| parent | 6a6fe688152b422f3d65c970dad56e7d9d28b1ee (diff) | |
| download | openbsd-9185f840eda265016178aeb0dcdba964f8f6f3e2.tar.gz openbsd-9185f840eda265016178aeb0dcdba964f8f6f3e2.tar.bz2 openbsd-9185f840eda265016178aeb0dcdba964f8f6f3e2.zip | |
Import NetBSD system call regression tests. They were written with
ATF (Automated Testing Framework), so we use a small wrapper to map
it to our bsd.regress.mk framework. Only half of the 80 NetBSD
tests have been taken, the others need more work to adapt. Of them
34 syscall tests pass.
Moritz Buhl ported the tests to OpenBSD.
Diffstat (limited to 'src/regress/lib/libc/sys/README')
| -rw-r--r-- | src/regress/lib/libc/sys/README | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/src/regress/lib/libc/sys/README b/src/regress/lib/libc/sys/README new file mode 100644 index 0000000000..979f3bde4a --- /dev/null +++ b/src/regress/lib/libc/sys/README | |||
| @@ -0,0 +1,68 @@ | |||
| 1 | Regression tests for system calls ported from NetBSD. | ||
| 2 | |||
| 3 | Reimplement ATF with many hacks to adjust the tests as little as possible. | ||
| 4 | |||
| 5 | Tests passing without source file adjustments: | ||
| 6 | t_access t_getpid t_kill t_msgsnd t_sigaction | ||
| 7 | t_bind t_link t_msync t_socketpair t_getgroups | ||
| 8 | t_getsid t_listen t_pipe t_truncate t_getitimer | ||
| 9 | t_getsockname t_mkdir t_sendrecv t_umask t_getlogin | ||
| 10 | t_gettimeofday t_msgctl t_setuid t_write | ||
| 11 | |||
| 12 | Tests passing after adjustments: | ||
| 13 | t_chroot - fchroot is not implemented | ||
| 14 | t_clock_gettime - requires sysctlbyname | ||
| 15 | t_dup - OpenBSD dup3 is similar to Linux dup3 | ||
| 16 | t_fsync - replace mkstemp | ||
| 17 | t_getrusage - no expected fail, PR kern/30115 is NetBSD, work more | ||
| 18 | t_mknod - remove tests for unsupported file types | ||
| 19 | t_msgget - remove msgget_limit test | ||
| 20 | t_poll - remove pollts_* tests | ||
| 21 | t_revoke - remove basic tests, revoke only on ttys supported | ||
| 22 | t_select - remove sigset_t struct as it is int on OpenBSD | ||
| 23 | |||
| 24 | Failing tests: | ||
| 25 | t_mkfifo - every test case fails now | ||
| 26 | t_mlock - wrong errno, succeeds where not expected, POSIX imprecise | ||
| 27 | t_mmap - ENOTBLK on test NetBSD is skipping, remove mmap_va0 test | ||
| 28 | t_msgrcv - msgrcv(id, &r, 3 - 1, 0x41, 004000) != -1 | ||
| 29 | t_pipe2 - closefrom(4) == -1, remove F_GETNOSIGPIPE and nosigpipe test | ||
| 30 | t_ptrace - ptrace(0, 0, ((void *)0), 0) != -1 | ||
| 31 | t_stat - invalid GID with doas | ||
| 32 | t_syscall - SIGSEGV | ||
| 33 | t_unlink - wrong errno according to POSIX | ||
| 34 | |||
| 35 | Excluded tests: | ||
| 36 | t_clock_nanosleep - not available | ||
| 37 | t_clone - not available | ||
| 38 | t_connect - | ||
| 39 | t_fork - | ||
| 40 | t_getcontext - | ||
| 41 | t_issetugid - | ||
| 42 | t_kevent - | ||
| 43 | t_lwp_create - not available | ||
| 44 | t_lwp_ctl - not available | ||
| 45 | t_mincore - removed | ||
| 46 | t_minherit - | ||
| 47 | t_mprotect - | ||
| 48 | t_nanosleep - not available | ||
| 49 | t_posix_fadvise - | ||
| 50 | t_posix_fallocate - | ||
| 51 | t_ptrace_wait - | ||
| 52 | t_ptrace_wait3 - | ||
| 53 | t_ptrace_wait4 - | ||
| 54 | t_ptrace_wait6 - not implemented | ||
| 55 | t_ptrace_waitid - | ||
| 56 | t_ptrace_waitpid - | ||
| 57 | t_recvmmsg - | ||
| 58 | t_sendmmsg - | ||
| 59 | t_setrlimit - | ||
| 60 | t_sigqueue - | ||
| 61 | t_sigtimedwait - | ||
| 62 | t_swapcontext - | ||
| 63 | t_timer_create - | ||
| 64 | t_ucontext - | ||
| 65 | t_vfork - | ||
| 66 | t_wait - | ||
| 67 | t_wait_noproc - | ||
| 68 | t_wait_noproc_wnohang - | ||
