diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2023-07-06 07:45:57 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2023-07-06 07:45:57 +0000 |
commit | 3726bc8101eafb9f0efe5d2f2081d37a233546b7 (patch) | |
tree | f34579ff514cd8c372e78077725ebfcfc3302315 /regress | |
parent | 644330b5fff18135c22ad2b367261f43812646ad (diff) |
syscall(2) regress will eventually be pointless, and untestable also
ok kettenis
Diffstat (limited to 'regress')
-rw-r--r-- | regress/sys/kern/Makefile | 4 | ||||
-rw-r--r-- | regress/sys/kern/syscall/Makefile | 5 | ||||
-rw-r--r-- | regress/sys/kern/syscall/syscall.c | 35 |
3 files changed, 2 insertions, 42 deletions
diff --git a/regress/sys/kern/Makefile b/regress/sys/kern/Makefile index b85e588d63c..f2f4ddc67db 100644 --- a/regress/sys/kern/Makefile +++ b/regress/sys/kern/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.104 2023/01/18 19:18:49 anton Exp $ +# $OpenBSD: Makefile,v 1.105 2023/07/06 07:45:56 deraadt Exp $ SUBDIR+= accept access SUBDIR+= bind @@ -20,7 +20,7 @@ SUBDIR+= select .ifmake clean || cleandir || obj SUBDIR+= setuid .endif -SUBDIR+= signal sosplice stackjmp stackpivot syscall syscall_segment +SUBDIR+= signal sosplice stackjmp stackpivot syscall_segment SUBDIR+= sysvmsg sysvsem sysvshm SUBDIR+= unalign unfdpass unixsockets unveil unveil-unmount SUBDIR+= wait diff --git a/regress/sys/kern/syscall/Makefile b/regress/sys/kern/syscall/Makefile deleted file mode 100644 index 1b22f581d76..00000000000 --- a/regress/sys/kern/syscall/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $OpenBSD: Makefile,v 1.1 2002/02/08 21:33:32 art Exp $ - -PROG= syscall - -.include <bsd.regress.mk> diff --git a/regress/sys/kern/syscall/syscall.c b/regress/sys/kern/syscall/syscall.c deleted file mode 100644 index 9198e5e2ef3..00000000000 --- a/regress/sys/kern/syscall/syscall.c +++ /dev/null @@ -1,35 +0,0 @@ -/* $OpenBSD: syscall.c,v 1.2 2003/07/31 21:48:10 deraadt Exp $ */ -/* - * Written by Artur Grabowski <art@openbsd.org> 2002 Public Domain. - */ -#include <sys/types.h> -#include <sys/syscall.h> -#include <sys/wait.h> -#include <unistd.h> -#include <stdlib.h> -#include <err.h> - -int -main(int argc, char *argv[]) -{ - int status; - - switch(fork()) { - case -1: - err(1, "fork"); - case 0: - syscall(SYS_exit, 17); - abort(); - } - - if (wait(&status) < 0) - err(1, "wait"); - - if (!WIFEXITED(status)) - errx(1, "child didn't exit gracefully"); - - if (WEXITSTATUS(status) != 17) - errx(1, "wrong exit status"); - - return 0; -} |