From 3726bc8101eafb9f0efe5d2f2081d37a233546b7 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Thu, 6 Jul 2023 07:45:57 +0000 Subject: syscall(2) regress will eventually be pointless, and untestable also ok kettenis --- regress/sys/kern/Makefile | 4 ++-- regress/sys/kern/syscall/Makefile | 5 ----- regress/sys/kern/syscall/syscall.c | 35 ----------------------------------- 3 files changed, 2 insertions(+), 42 deletions(-) delete mode 100644 regress/sys/kern/syscall/Makefile delete mode 100644 regress/sys/kern/syscall/syscall.c (limited to 'regress/sys/kern') 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; -} -- cgit v1.2.3