syscall(2) regress will eventually be pointless, and untestable also
authorderaadt <deraadt@openbsd.org>
Thu, 6 Jul 2023 07:45:56 +0000 (07:45 +0000)
committerderaadt <deraadt@openbsd.org>
Thu, 6 Jul 2023 07:45:56 +0000 (07:45 +0000)
ok kettenis

regress/sys/kern/Makefile
regress/sys/kern/syscall/Makefile [deleted file]
regress/sys/kern/syscall/syscall.c [deleted file]

index b85e588..f2f4ddc 100644 (file)
@@ -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 (file)
index 1b22f58..0000000
+++ /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 (file)
index 9198e5e..0000000
+++ /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;
-}