From: deraadt Date: Thu, 6 Jul 2023 07:45:56 +0000 (+0000) Subject: syscall(2) regress will eventually be pointless, and untestable also X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=4f1b6f3a7f428ec6cf4b624e9334409d63a778f7;p=openbsd syscall(2) regress will eventually be pointless, and untestable also ok kettenis --- 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 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 2002 Public Domain. - */ -#include -#include -#include -#include -#include -#include - -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; -}