summaryrefslogtreecommitdiff
path: root/src/regress/lib/libc/sys/Makefile
diff options
context:
space:
mode:
authormpi <>2020-01-30 08:22:30 +0000
committermpi <>2020-01-30 08:22:30 +0000
commit668fa98385559e6ca53555e32da8e7eb618f0d80 (patch)
treea7ed8c6b1fae21213c4669bd2c105cf274af844f /src/regress/lib/libc/sys/Makefile
parenta9c1dd59a3357c18bee994783c7c8ed45d3e593a (diff)
downloadopenbsd-668fa98385559e6ca53555e32da8e7eb618f0d80.tar.gz
openbsd-668fa98385559e6ca53555e32da8e7eb618f0d80.tar.bz2
openbsd-668fa98385559e6ca53555e32da8e7eb618f0d80.zip
Enable t_ptrace with an errno change compared to NetBSD.
Note that the last test triggers a kernel bug related to waitpid(9) and ptraced processes. This is now visible thanks to recent make(1) changes. guenther@ suggests to look at the logic behind `p_orphan' in FreeBSD to fix this bug.
Diffstat (limited to 'src/regress/lib/libc/sys/Makefile')
-rw-r--r--src/regress/lib/libc/sys/Makefile14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/regress/lib/libc/sys/Makefile b/src/regress/lib/libc/sys/Makefile
index e30e0a08fb..8c2c6eb3f8 100644
--- a/src/regress/lib/libc/sys/Makefile
+++ b/src/regress/lib/libc/sys/Makefile
@@ -1,4 +1,4 @@
1# $OpenBSD: Makefile,v 1.2 2020/01/13 17:06:56 bluhm Exp $ 1# $OpenBSD: Makefile,v 1.3 2020/01/30 08:22:30 mpi Exp $
2 2
3# Copyright (c) 2019 Moritz Buhl <openbsd@moritzbuhl.de> 3# Copyright (c) 2019 Moritz Buhl <openbsd@moritzbuhl.de>
4# Copyright (c) 2019 Alexander Bluhm <bluhm@openbsd.org> 4# Copyright (c) 2019 Alexander Bluhm <bluhm@openbsd.org>
@@ -30,8 +30,8 @@ PROGS += t_access t_bind t_chroot t_clock_gettime t_dup t_fsync
30PROGS += t_getgroups t_getitimer t_getlogin t_getpid t_getrusage 30PROGS += t_getgroups t_getitimer t_getlogin t_getpid t_getrusage
31PROGS += t_getsid t_getsockname t_gettimeofday t_kill t_link t_listen 31PROGS += t_getsid t_getsockname t_gettimeofday t_kill t_link t_listen
32PROGS += t_mkdir t_mknod t_msgctl t_msgget t_msgsnd t_msync t_pipe 32PROGS += t_mkdir t_mknod t_msgctl t_msgget t_msgsnd t_msync t_pipe
33PROGS += t_poll t_revoke t_select t_sendrecv t_setuid t_socketpair 33PROGS += t_poll t_ptrace t_revoke t_select t_sendrecv t_setuid
34PROGS += t_sigaction t_truncate t_umask t_write 34PROGS += t_socketpair t_sigaction t_truncate t_umask t_write
35 35
36# failing tests 36# failing tests
37.if 0 37.if 0
@@ -40,7 +40,6 @@ PROGS += t_mlock
40PROGS += t_mmap 40PROGS += t_mmap
41PROGS += t_msgrcv 41PROGS += t_msgrcv
42PROGS += t_pipe2 42PROGS += t_pipe2
43PROGS += t_ptrace
44PROGS += t_stat 43PROGS += t_stat
45PROGS += t_syscall 44PROGS += t_syscall
46PROGS += t_unlink 45PROGS += t_unlink
@@ -57,8 +56,9 @@ setup-t_truncate:
57 ${SUDO} touch truncate_test.root_owned 56 ${SUDO} touch truncate_test.root_owned
58 ${SUDO} chown root:wheel truncate_test.root_owned 57 ${SUDO} chown root:wheel truncate_test.root_owned
59 58
60run-t_chroot: cleanup-t_chroot 59run-t_chroot: cleanup-dir
61cleanup-t_chroot: 60run-t_ptrace: cleanup-dir
61cleanup-dir:
62 ${SUDO} rm -rf dir 62 ${SUDO} rm -rf dir
63 63
64CLEANFILES = access dummy mmap truncate_test.root_owned 64CLEANFILES = access dummy mmap truncate_test.root_owned
@@ -100,3 +100,5 @@ run-${PROG}-$n:
100.endif 100.endif
101 101
102.include <bsd.regress.mk> 102.include <bsd.regress.mk>
103
104clean: cleanup-dir