Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src Deprecate tests/sycall. The tests will be added back to test...
details: https://anonhg.NetBSD.org/src/rev/57409c8052fb
branches: trunk
changeset: 767024:57409c8052fb
user: jruoho <jruoho%NetBSD.org@localhost>
date: Thu Jul 07 06:16:59 2011 +0000
description:
Deprecate tests/sycall. The tests will be added back to tests/libc/sys.
diffstat:
distrib/sets/lists/tests/mi | 140 +++++-----
tests/syscall/Makefile | 22 -
tests/syscall/t_access.c | 210 -----------------
tests/syscall/t_chroot.c | 313 --------------------------
tests/syscall/t_dup.c | 184 ---------------
tests/syscall/t_fsync.c | 119 ----------
tests/syscall/t_getgroups.c | 171 --------------
tests/syscall/t_getlogin.c | 237 --------------------
tests/syscall/t_getpid.c | 134 -----------
tests/syscall/t_getrusage.c | 192 ----------------
tests/syscall/t_getsid.c | 119 ----------
tests/syscall/t_gettimeofday.c | 86 -------
tests/syscall/t_issetugid.c | 148 ------------
tests/syscall/t_itimer.c | 215 ------------------
tests/syscall/t_kill.c | 312 --------------------------
tests/syscall/t_link.c | 225 -------------------
tests/syscall/t_mincore.c | 189 ----------------
tests/syscall/t_mkfifo.c | 280 -----------------------
tests/syscall/t_mknod.c | 194 ----------------
tests/syscall/t_mmap.c | 322 ---------------------------
tests/syscall/t_mprotect.c | 273 -----------------------
tests/syscall/t_msync.c | 226 -------------------
tests/syscall/t_nanosleep.c | 177 ---------------
tests/syscall/t_poll.c | 135 -----------
tests/syscall/t_pollts.c | 198 ----------------
tests/syscall/t_pselect.c | 217 ------------------
tests/syscall/t_revoke.c | 186 ---------------
tests/syscall/t_setrlimit.c | 481 -----------------------------------------
tests/syscall/t_setuid.c | 122 ----------
tests/syscall/t_stat.c | 374 -------------------------------
tests/syscall/t_timer.c | 345 -----------------------------
tests/syscall/t_truncate.c | 175 --------------
tests/syscall/t_umask.c | 205 -----------------
tests/syscall/t_unlink.c | 154 -------------
34 files changed, 70 insertions(+), 7010 deletions(-)
diffs (truncated from 7253 to 300 lines):
diff -r b9edb0a67d16 -r 57409c8052fb distrib/sets/lists/tests/mi
--- a/distrib/sets/lists/tests/mi Thu Jul 07 06:02:06 2011 +0000
+++ b/distrib/sets/lists/tests/mi Thu Jul 07 06:16:59 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.364 2011/07/07 05:50:26 jruoho Exp $
+# $NetBSD: mi,v 1.365 2011/07/07 06:18:25 jruoho Exp $
#
# Note: don't delete entries from here - mark them as "obsolete" instead.
#
@@ -458,9 +458,9 @@
./usr/libdata/debug/usr/tests/lib/libc/string/t_string.debug tests-lib-debug debug,atf
./usr/libdata/debug/usr/tests/lib/libc/string/t_swab.debug tests-lib-debug debug,atf
./usr/libdata/debug/usr/tests/lib/libc/sys tests-lib-debug
+./usr/libdata/debug/usr/tests/lib/libc/sys/t_cerror.debug tests-lib-debug debug,atf
./usr/libdata/debug/usr/tests/lib/libc/sys/t_clone.debug tests-lib-debug debug,atf
./usr/libdata/debug/usr/tests/lib/libc/sys/t_context.debug tests-lib-debug debug,atf
-./usr/libdata/debug/usr/tests/lib/libc/sys/t_cerror.debug tests-lib-debug debug,atf
./usr/libdata/debug/usr/tests/lib/libc/sys/t_sigqueue.debug tests-lib-debug debug,atf
./usr/libdata/debug/usr/tests/lib/libc/termios tests-lib-debug
./usr/libdata/debug/usr/tests/lib/libc/termios/t_tcsetpgrp.debug tests-lib-debug debug,atf
@@ -620,40 +620,40 @@
./usr/libdata/debug/usr/tests/rump/rumpvfs/t_p2kifs.debug tests-syscall-debug debug,atf
./usr/libdata/debug/usr/tests/sbin tests-sbin-tests
./usr/libdata/debug/usr/tests/sbin/resize_ffs tests-sbin-tests
-./usr/libdata/debug/usr/tests/syscall tests-syscall-debug
-./usr/libdata/debug/usr/tests/syscall/t_access.debug tests-syscall-debug debug,atf
-./usr/libdata/debug/usr/tests/syscall/t_chroot.debug tests-syscall-debug debug,atf
+./usr/libdata/debug/usr/tests/syscall tests-obsolete
+./usr/libdata/debug/usr/tests/syscall/t_access.debug tests-obsolete obsolete
+./usr/libdata/debug/usr/tests/syscall/t_chroot.debug tests-obsolete obsolete
./usr/libdata/debug/usr/tests/syscall/t_cmsg.debug tests-obsolete obsolete
-./usr/libdata/debug/usr/tests/syscall/t_dup.debug tests-syscall-debug debug,atf
-./usr/libdata/debug/usr/tests/syscall/t_fsync.debug tests-syscall-debug debug,atf
-./usr/libdata/debug/usr/tests/syscall/t_getgroups.debug tests-syscall-debug debug,atf
-./usr/libdata/debug/usr/tests/syscall/t_getlogin.debug tests-syscall-debug debug,atf
-./usr/libdata/debug/usr/tests/syscall/t_getpid.debug tests-syscall-debug debug,atf
-./usr/libdata/debug/usr/tests/syscall/t_getrusage.debug tests-syscall-debug debug,atf
-./usr/libdata/debug/usr/tests/syscall/t_getsid.debug tests-syscall-debug debug,atf
-./usr/libdata/debug/usr/tests/syscall/t_gettimeofday.debug tests-syscall-debug debug,atf
-./usr/libdata/debug/usr/tests/syscall/t_issetugid.debug tests-syscall-debug debug,atf
-./usr/libdata/debug/usr/tests/syscall/t_itimer.debug tests-syscall-debug debug,atf
-./usr/libdata/debug/usr/tests/syscall/t_kill.debug tests-syscall-debug debug,atf
-./usr/libdata/debug/usr/tests/syscall/t_link.debug tests-syscall-debug debug,atf
-./usr/libdata/debug/usr/tests/syscall/t_mincore.debug tests-syscall-debug debug,atf
-./usr/libdata/debug/usr/tests/syscall/t_mkfifo.debug tests-syscall-debug debug,atf
-./usr/libdata/debug/usr/tests/syscall/t_mknod.debug tests-syscall-debug debug,atf
-./usr/libdata/debug/usr/tests/syscall/t_mmap.debug tests-syscall-debug debug,atf
-./usr/libdata/debug/usr/tests/syscall/t_mprotect.debug tests-syscall-debug debug,atf
-./usr/libdata/debug/usr/tests/syscall/t_msync.debug tests-syscall-debug debug,atf
-./usr/libdata/debug/usr/tests/syscall/t_nanosleep.debug tests-syscall-debug debug,atf
-./usr/libdata/debug/usr/tests/syscall/t_poll.debug tests-syscall-debug debug,atf
-./usr/libdata/debug/usr/tests/syscall/t_pollts.debug tests-syscall-debug debug,atf
-./usr/libdata/debug/usr/tests/syscall/t_pselect.debug tests-syscall-debug debug,atf
-./usr/libdata/debug/usr/tests/syscall/t_revoke.debug tests-syscall-debug debug,atf
-./usr/libdata/debug/usr/tests/syscall/t_setrlimit.debug tests-syscall-debug debug,atf
-./usr/libdata/debug/usr/tests/syscall/t_setuid.debug tests-syscall-debug debug,atf
-./usr/libdata/debug/usr/tests/syscall/t_stat.debug tests-syscall-debug debug,atf
-./usr/libdata/debug/usr/tests/syscall/t_timer.debug tests-syscall-debug debug,atf
-./usr/libdata/debug/usr/tests/syscall/t_truncate.debug tests-syscall-debug debug,atf
-./usr/libdata/debug/usr/tests/syscall/t_umask.debug tests-syscall-debug debug,atf
-./usr/libdata/debug/usr/tests/syscall/t_unlink.debug tests-syscall-debug debug,atf
+./usr/libdata/debug/usr/tests/syscall/t_dup.debug tests-obsolete obsolete
+./usr/libdata/debug/usr/tests/syscall/t_fsync.debug tests-obsolete obsolete
+./usr/libdata/debug/usr/tests/syscall/t_getgroups.debug tests-obsolete obsolete
+./usr/libdata/debug/usr/tests/syscall/t_getlogin.debug tests-obsolete obsolete
+./usr/libdata/debug/usr/tests/syscall/t_getpid.debug tests-obsolete obsolete
+./usr/libdata/debug/usr/tests/syscall/t_getrusage.debug tests-obsolete obsolete
+./usr/libdata/debug/usr/tests/syscall/t_getsid.debug tests-obsolete obsolete
+./usr/libdata/debug/usr/tests/syscall/t_gettimeofday.debug tests-obsolete obsolete
+./usr/libdata/debug/usr/tests/syscall/t_issetugid.debug tests-obsolete obsolete
+./usr/libdata/debug/usr/tests/syscall/t_itimer.debug tests-obsolete obsolete
+./usr/libdata/debug/usr/tests/syscall/t_kill.debug tests-obsolete obsolete
+./usr/libdata/debug/usr/tests/syscall/t_link.debug tests-obsolete obsolete
+./usr/libdata/debug/usr/tests/syscall/t_mincore.debug tests-obsolete obsolete
+./usr/libdata/debug/usr/tests/syscall/t_mkfifo.debug tests-obsolete obsolete
+./usr/libdata/debug/usr/tests/syscall/t_mknod.debug tests-obsolete obsolete
+./usr/libdata/debug/usr/tests/syscall/t_mmap.debug tests-obsolete obsolete
+./usr/libdata/debug/usr/tests/syscall/t_mprotect.debug tests-obsolete obsolete
+./usr/libdata/debug/usr/tests/syscall/t_msync.debug tests-obsolete obsolete
+./usr/libdata/debug/usr/tests/syscall/t_nanosleep.debug tests-obsolete obsolete
+./usr/libdata/debug/usr/tests/syscall/t_poll.debug tests-obsolete obsolete
+./usr/libdata/debug/usr/tests/syscall/t_pollts.debug tests-obsolete obsolete
+./usr/libdata/debug/usr/tests/syscall/t_pselect.debug tests-obsolete obsolete
+./usr/libdata/debug/usr/tests/syscall/t_revoke.debug tests-obsolete obsolete
+./usr/libdata/debug/usr/tests/syscall/t_setrlimit.debug tests-obsolete obsolete
+./usr/libdata/debug/usr/tests/syscall/t_setuid.debug tests-obsolete obsolete
+./usr/libdata/debug/usr/tests/syscall/t_stat.debug tests-obsolete obsolete
+./usr/libdata/debug/usr/tests/syscall/t_timer.debug tests-obsolete obsolete
+./usr/libdata/debug/usr/tests/syscall/t_truncate.debug tests-obsolete obsolete
+./usr/libdata/debug/usr/tests/syscall/t_umask.debug tests-obsolete obsolete
+./usr/libdata/debug/usr/tests/syscall/t_unlink.debug tests-obsolete obsolete
./usr/libdata/debug/usr/tests/usr.bin tests-sbin-tests
./usr/libdata/debug/usr/tests/usr.sbin tests-sbin-tests
./usr/libdata/debug/usr/tests/util tests-util-debug
@@ -1997,9 +1997,9 @@
./usr/tests/lib/libc/string/t_swab tests-lib-tests atf
./usr/tests/lib/libc/sys tests-lib-tests
./usr/tests/lib/libc/sys/Atffile tests-lib-tests atf
+./usr/tests/lib/libc/sys/t_cerror tests-lib-tests atf
./usr/tests/lib/libc/sys/t_clone tests-lib-tests atf
./usr/tests/lib/libc/sys/t_context tests-lib-tests atf
-./usr/tests/lib/libc/sys/t_cerror tests-lib-tests atf
./usr/tests/lib/libc/sys/t_sigqueue tests-lib-tests atf
./usr/tests/lib/libc/termios tests-lib-tests
./usr/tests/lib/libc/termios/Atffile tests-lib-tests atf
@@ -2373,41 +2373,41 @@
./usr/tests/sys/rc/h_args tests-sys-tests atf
./usr/tests/sys/rc/h_simple tests-sys-tests atf
./usr/tests/sys/rc/t_rc_d_cli tests-sys-tests atf
-./usr/tests/syscall tests-syscall-tests
-./usr/tests/syscall/Atffile tests-syscall-tests atf
-./usr/tests/syscall/t_access tests-syscall-tests atf
-./usr/tests/syscall/t_chroot tests-syscall-tests atf
+./usr/tests/syscall tests-obsolete
+./usr/tests/syscall/Atffile tests-obsolete obsolete
+./usr/tests/syscall/t_access tests-obsolete obsolete
+./usr/tests/syscall/t_chroot tests-obsolete obsolete
./usr/tests/syscall/t_cmsg tests-obsolete obsolete
-./usr/tests/syscall/t_dup tests-syscall-tests atf
-./usr/tests/syscall/t_fsync tests-syscall-tests atf
-./usr/tests/syscall/t_getgroups tests-syscall-tests atf
-./usr/tests/syscall/t_getlogin tests-syscall-tests atf
-./usr/tests/syscall/t_getpid tests-syscall-tests atf
-./usr/tests/syscall/t_getrusage tests-syscall-tests atf
-./usr/tests/syscall/t_getsid tests-syscall-tests atf
-./usr/tests/syscall/t_gettimeofday tests-syscall-tests atf
-./usr/tests/syscall/t_issetugid tests-syscall-tests atf
-./usr/tests/syscall/t_itimer tests-syscall-tests atf
-./usr/tests/syscall/t_kill tests-syscall-tests atf
-./usr/tests/syscall/t_link tests-syscall-tests atf
-./usr/tests/syscall/t_mincore tests-syscall-tests atf
-./usr/tests/syscall/t_mkfifo tests-syscall-tests atf
-./usr/tests/syscall/t_mknod tests-syscall-tests atf
-./usr/tests/syscall/t_mmap tests-syscall-tests atf
-./usr/tests/syscall/t_mprotect tests-syscall-tests atf
-./usr/tests/syscall/t_msync tests-syscall-tests atf
-./usr/tests/syscall/t_nanosleep tests-syscall-tests atf
-./usr/tests/syscall/t_poll tests-syscall-tests atf
-./usr/tests/syscall/t_pollts tests-syscall-tests atf
-./usr/tests/syscall/t_pselect tests-syscall-tests atf
-./usr/tests/syscall/t_revoke tests-syscall-tests atf
-./usr/tests/syscall/t_setrlimit tests-syscall-tests atf
-./usr/tests/syscall/t_setuid tests-syscall-tests atf
-./usr/tests/syscall/t_stat tests-syscall-tests atf
-./usr/tests/syscall/t_timer tests-syscall-tests atf
-./usr/tests/syscall/t_truncate tests-syscall-tests atf
-./usr/tests/syscall/t_umask tests-syscall-tests atf
-./usr/tests/syscall/t_unlink tests-syscall-tests atf
+./usr/tests/syscall/t_dup tests-obsolete obsolete
+./usr/tests/syscall/t_fsync tests-obsolete obsolete
+./usr/tests/syscall/t_getgroups tests-obsolete obsolete
+./usr/tests/syscall/t_getlogin tests-obsolete obsolete
+./usr/tests/syscall/t_getpid tests-obsolete obsolete
+./usr/tests/syscall/t_getrusage tests-obsolete obsolete
+./usr/tests/syscall/t_getsid tests-obsolete obsolete
+./usr/tests/syscall/t_gettimeofday tests-obsolete obsolete
+./usr/tests/syscall/t_issetugid tests-obsolete obsolete
+./usr/tests/syscall/t_itimer tests-obsolete obsolete
+./usr/tests/syscall/t_kill tests-obsolete obsolete
+./usr/tests/syscall/t_link tests-obsolete obsolete
+./usr/tests/syscall/t_mincore tests-obsolete obsolete
+./usr/tests/syscall/t_mkfifo tests-obsolete obsolete
+./usr/tests/syscall/t_mknod tests-obsolete obsolete
+./usr/tests/syscall/t_mmap tests-obsolete obsolete
+./usr/tests/syscall/t_mprotect tests-obsolete obsolete
+./usr/tests/syscall/t_msync tests-obsolete obsolete
+./usr/tests/syscall/t_nanosleep tests-obsolete obsolete
+./usr/tests/syscall/t_poll tests-obsolete obsolete
+./usr/tests/syscall/t_pollts tests-obsolete obsolete
+./usr/tests/syscall/t_pselect tests-obsolete obsolete
+./usr/tests/syscall/t_revoke tests-obsolete obsolete
+./usr/tests/syscall/t_setrlimit tests-obsolete obsolete
+./usr/tests/syscall/t_setuid tests-obsolete obsolete
+./usr/tests/syscall/t_stat tests-obsolete obsolete
+./usr/tests/syscall/t_timer tests-obsolete obsolete
+./usr/tests/syscall/t_truncate tests-obsolete obsolete
+./usr/tests/syscall/t_umask tests-obsolete obsolete
+./usr/tests/syscall/t_unlink tests-obsolete obsolete
./usr/tests/toolchain tests-syscall-tests atf
./usr/tests/toolchain/Atffile tests-syscall-tests atf
./usr/tests/toolchain/cc tests-syscall-tests atf
diff -r b9edb0a67d16 -r 57409c8052fb tests/syscall/Makefile
--- a/tests/syscall/Makefile Thu Jul 07 06:02:06 2011 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,22 +0,0 @@
-# $NetBSD: Makefile,v 1.41 2011/07/07 05:50:26 jruoho Exp $
-
-.include <bsd.own.mk>
-
-TESTSDIR= ${TESTSBASE}/syscall
-
-TESTS_C+= t_access t_chroot t_dup t_fsync
-TESTS_C+= t_getgroups t_getlogin t_getpid
-TESTS_C+= t_getrusage t_getsid t_gettimeofday
-TESTS_C+= t_issetugid t_itimer t_kill t_link
-TESTS_C+= t_mincore t_mkfifo t_mknod t_mmap
-TESTS_C+= t_mprotect t_msync t_nanosleep
-TESTS_C+= t_poll t_pollts t_pselect t_revoke
-TESTS_C+= t_setrlimit t_setuid t_stat t_timer t_truncate
-TESTS_C+= t_umask t_unlink
-
-LDADD.t_getpid+= -lpthread
-LDADD.t_timer+= -lpthread
-
-WARNS= 4
-
-.include <bsd.test.mk>
diff -r b9edb0a67d16 -r 57409c8052fb tests/syscall/t_access.c
--- a/tests/syscall/t_access.c Thu Jul 07 06:02:06 2011 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,210 +0,0 @@
-/* $NetBSD: t_access.c,v 1.4 2011/04/25 22:29:35 njoly Exp $ */
-
-/*-
- * Copyright (c) 2011 The NetBSD Foundation, Inc.
- * All rights reserved.
- *
- * This code is derived from software contributed to The NetBSD Foundation
- * by Jukka Ruohonen.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
- * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
- * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_access.c,v 1.4 2011/04/25 22:29:35 njoly Exp $");
-
-#include <errno.h>
-#include <fcntl.h>
-#include <limits.h>
-#include <stdint.h>
-#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 };
-
-ATF_TC_WITH_CLEANUP(access_access);
-ATF_TC_HEAD(access_access, tc)
-{
- atf_tc_set_md_var(tc, "descr", "Test access(2) for EACCES");
- atf_tc_set_md_var(tc, "require.user", "unprivileged");
-}
-
-ATF_TC_BODY(access_access, tc)
-{
- const int perm[3] = { 0200, 0400, 0000 };
- size_t i;
- int fd;
-
- fd = open(path, O_RDONLY | O_CREAT);
-
- if (fd < 0)
- return;
-
- for (i = 0; i < __arraycount(mode) - 1; i++) {
-
- ATF_REQUIRE(fchmod(fd, perm[i]) == 0);
-
- errno = 0;
-
- ATF_REQUIRE(access(path, mode[i]) != 0);
- ATF_REQUIRE(errno == EACCES);
- }
-
- ATF_REQUIRE(close(fd) == 0);
-}
-
-ATF_TC_CLEANUP(access_access, tc)
-{
- (void)unlink(path);
-}
-
-ATF_TC(access_fault);
-ATF_TC_HEAD(access_fault, tc)
-{
- atf_tc_set_md_var(tc, "descr", "Test access(2) for EFAULT");
-}
-
-ATF_TC_BODY(access_fault, tc)
-{
Home |
Main Index |
Thread Index |
Old Index