Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests more tests needing <sys/stat.h>
details: https://anonhg.NetBSD.org/src/rev/3a736ed6babd
branches: trunk
changeset: 820528:3a736ed6babd
user: christos <christos%NetBSD.org@localhost>
date: Tue Jan 10 22:36:29 2017 +0000
description:
more tests needing <sys/stat.h>
diffstat:
tests/fs/fifofs/t_fifo.c | 3 ++-
tests/lib/libc/gen/posix_spawn/t_fileactions.c | 7 +++++--
tests/lib/libc/sys/t_access.c | 10 ++++++----
tests/lib/libc/sys/t_chroot.c | 5 +++--
tests/lib/libc/sys/t_mincore.c | 5 +++--
tests/lib/libc/sys/t_mmap.c | 5 +++--
tests/rump/rumpkern/t_lwproc.c | 3 ++-
7 files changed, 24 insertions(+), 14 deletions(-)
diffs (155 lines):
diff -r 3fa2adce9388 -r 3a736ed6babd tests/fs/fifofs/t_fifo.c
--- a/tests/fs/fifofs/t_fifo.c Tue Jan 10 22:24:29 2017 +0000
+++ b/tests/fs/fifofs/t_fifo.c Tue Jan 10 22:36:29 2017 +0000
@@ -1,9 +1,10 @@
/* Test case written by Bharat Joshi */
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_fifo.c,v 1.1 2011/12/21 00:17:07 christos Exp $");
+__RCSID("$NetBSD: t_fifo.c,v 1.2 2017/01/10 22:36:29 christos Exp $");
#include <sys/types.h>
#include <sys/wait.h>
+#include <sys/stat.h>
#include <stdio.h>
#include <stdlib.h>
diff -r 3fa2adce9388 -r 3a736ed6babd tests/lib/libc/gen/posix_spawn/t_fileactions.c
--- a/tests/lib/libc/gen/posix_spawn/t_fileactions.c Tue Jan 10 22:24:29 2017 +0000
+++ b/tests/lib/libc/gen/posix_spawn/t_fileactions.c Tue Jan 10 22:36:29 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_fileactions.c,v 1.5 2012/04/09 19:42:07 martin Exp $ */
+/* $NetBSD: t_fileactions.c,v 1.6 2017/01/10 22:36:29 christos Exp $ */
/*-
* Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -32,6 +32,10 @@
#include <atf-c.h>
+
+#include <sys/wait.h>
+#include <sys/stat.h>
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -39,7 +43,6 @@
#include <fcntl.h>
#include <spawn.h>
#include <unistd.h>
-#include <sys/wait.h>
ATF_TC(t_spawn_openmode);
diff -r 3fa2adce9388 -r 3a736ed6babd tests/lib/libc/sys/t_access.c
--- a/tests/lib/libc/sys/t_access.c Tue Jan 10 22:24:29 2017 +0000
+++ b/tests/lib/libc/sys/t_access.c Tue Jan 10 22:36:29 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_access.c,v 1.1 2011/07/07 06:57:53 jruoho Exp $ */
+/* $NetBSD: t_access.c,v 1.2 2017/01/10 22:36:29 christos Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -29,7 +29,11 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_access.c,v 1.1 2011/07/07 06:57:53 jruoho Exp $");
+__RCSID("$NetBSD: t_access.c,v 1.2 2017/01/10 22:36:29 christos Exp $");
+
+#include <atf-c.h>
+
+#include <sys/stat.h>
#include <errno.h>
#include <fcntl.h>
@@ -38,8 +42,6 @@
#include <stdlib.h>
#include <unistd.h>
-#include <atf-c.h>
-
static const char path[] = "access";
static const int mode[4] = { R_OK, W_OK, X_OK, F_OK };
diff -r 3fa2adce9388 -r 3a736ed6babd tests/lib/libc/sys/t_chroot.c
--- a/tests/lib/libc/sys/t_chroot.c Tue Jan 10 22:24:29 2017 +0000
+++ b/tests/lib/libc/sys/t_chroot.c Tue Jan 10 22:36:29 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_chroot.c,v 1.1 2011/07/07 06:57:53 jruoho Exp $ */
+/* $NetBSD: t_chroot.c,v 1.2 2017/01/10 22:36:29 christos Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -29,9 +29,10 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_chroot.c,v 1.1 2011/07/07 06:57:53 jruoho Exp $");
+__RCSID("$NetBSD: t_chroot.c,v 1.2 2017/01/10 22:36:29 christos Exp $");
#include <sys/wait.h>
+#include <sys/stat.h>
#include <atf-c.h>
#include <errno.h>
diff -r 3fa2adce9388 -r 3a736ed6babd tests/lib/libc/sys/t_mincore.c
--- a/tests/lib/libc/sys/t_mincore.c Tue Jan 10 22:24:29 2017 +0000
+++ b/tests/lib/libc/sys/t_mincore.c Tue Jan 10 22:36:29 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_mincore.c,v 1.8 2012/06/08 07:18:58 martin Exp $ */
+/* $NetBSD: t_mincore.c,v 1.9 2017/01/10 22:36:29 christos Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -59,9 +59,10 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_mincore.c,v 1.8 2012/06/08 07:18:58 martin Exp $");
+__RCSID("$NetBSD: t_mincore.c,v 1.9 2017/01/10 22:36:29 christos Exp $");
#include <sys/mman.h>
+#include <sys/stat.h>
#include <sys/shm.h>
#include <atf-c.h>
diff -r 3fa2adce9388 -r 3a736ed6babd tests/lib/libc/sys/t_mmap.c
--- a/tests/lib/libc/sys/t_mmap.c Tue Jan 10 22:24:29 2017 +0000
+++ b/tests/lib/libc/sys/t_mmap.c Tue Jan 10 22:36:29 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_mmap.c,v 1.9 2015/02/28 13:57:08 martin Exp $ */
+/* $NetBSD: t_mmap.c,v 1.10 2017/01/10 22:36:29 christos Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -55,10 +55,11 @@
* SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_mmap.c,v 1.9 2015/02/28 13:57:08 martin Exp $");
+__RCSID("$NetBSD: t_mmap.c,v 1.10 2017/01/10 22:36:29 christos Exp $");
#include <sys/param.h>
#include <sys/mman.h>
+#include <sys/stat.h>
#include <sys/socket.h>
#include <sys/sysctl.h>
#include <sys/wait.h>
diff -r 3fa2adce9388 -r 3a736ed6babd tests/rump/rumpkern/t_lwproc.c
--- a/tests/rump/rumpkern/t_lwproc.c Tue Jan 10 22:24:29 2017 +0000
+++ b/tests/rump/rumpkern/t_lwproc.c Tue Jan 10 22:36:29 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_lwproc.c,v 1.7 2015/01/21 15:19:01 pooka Exp $ */
+/* $NetBSD: t_lwproc.c,v 1.8 2017/01/10 22:36:29 christos Exp $ */
/*
* Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -29,6 +29,7 @@
#include <sys/types.h>
#include <sys/wait.h>
+#include <sys/stat.h>
#include <rump/rump.h>
#include <rump/rump_syscalls.h>
Home |
Main Index |
Thread Index |
Old Index