Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/syscall Avoid creating test files oustide atf-run temp...
details: https://anonhg.NetBSD.org/src/rev/f74d83d8328d
branches: trunk
changeset: 764510:f74d83d8328d
user: njoly <njoly%NetBSD.org@localhost>
date: Mon Apr 25 22:29:35 2011 +0000
description:
Avoid creating test files oustide atf-run temporary tree.
diffstat:
tests/syscall/t_access.c | 6 +++---
tests/syscall/t_dup.c | 6 +++---
tests/syscall/t_mmap.c | 6 +++---
tests/syscall/t_mprotect.c | 6 +++---
tests/syscall/t_msync.c | 6 +++---
tests/syscall/t_setrlimit.c | 6 +++---
tests/syscall/t_umask.c | 6 +++---
7 files changed, 21 insertions(+), 21 deletions(-)
diffs (189 lines):
diff -r eba1ff699156 -r f74d83d8328d tests/syscall/t_access.c
--- a/tests/syscall/t_access.c Mon Apr 25 22:28:21 2011 +0000
+++ b/tests/syscall/t_access.c Mon Apr 25 22:29:35 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_access.c,v 1.3 2011/04/04 07:16:29 jruoho Exp $ */
+/* $NetBSD: t_access.c,v 1.4 2011/04/25 22:29:35 njoly Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_access.c,v 1.3 2011/04/04 07:16:29 jruoho Exp $");
+__RCSID("$NetBSD: t_access.c,v 1.4 2011/04/25 22:29:35 njoly Exp $");
#include <errno.h>
#include <fcntl.h>
@@ -40,7 +40,7 @@
#include <atf-c.h>
-static const char path[] = "/tmp/access";
+static const char path[] = "access";
static const int mode[4] = { R_OK, W_OK, X_OK, F_OK };
ATF_TC_WITH_CLEANUP(access_access);
diff -r eba1ff699156 -r f74d83d8328d tests/syscall/t_dup.c
--- a/tests/syscall/t_dup.c Mon Apr 25 22:28:21 2011 +0000
+++ b/tests/syscall/t_dup.c Mon Apr 25 22:29:35 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_dup.c,v 1.3 2011/04/08 15:35:49 jruoho Exp $ */
+/* $NetBSD: t_dup.c,v 1.4 2011/04/25 22:29:35 njoly Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_dup.c,v 1.3 2011/04/08 15:35:49 jruoho Exp $");
+__RCSID("$NetBSD: t_dup.c,v 1.4 2011/04/25 22:29:35 njoly Exp $");
#include <sys/resource.h>
#include <sys/stat.h>
@@ -42,7 +42,7 @@
#include <atf-c.h>
-static char path[] = "/tmp/dup";
+static char path[] = "dup";
ATF_TC(dup_err);
ATF_TC_HEAD(dup_err, tc)
diff -r eba1ff699156 -r f74d83d8328d tests/syscall/t_mmap.c
--- a/tests/syscall/t_mmap.c Mon Apr 25 22:28:21 2011 +0000
+++ b/tests/syscall/t_mmap.c Mon Apr 25 22:29:35 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_mmap.c,v 1.3 2011/04/19 10:21:51 martin Exp $ */
+/* $NetBSD: t_mmap.c,v 1.4 2011/04/25 22:29:35 njoly Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_mmap.c,v 1.3 2011/04/19 10:21:51 martin Exp $");
+__RCSID("$NetBSD: t_mmap.c,v 1.4 2011/04/25 22:29:35 njoly Exp $");
#include <sys/param.h>
#include <sys/mman.h>
@@ -46,7 +46,7 @@
#include <atf-c.h>
static long page = 0;
-static char path[] = "/tmp/mmap";
+static char path[] = "mmap";
static void map_check(void *, int);
static void map_sighandler(int);
diff -r eba1ff699156 -r f74d83d8328d tests/syscall/t_mprotect.c
--- a/tests/syscall/t_mprotect.c Mon Apr 25 22:28:21 2011 +0000
+++ b/tests/syscall/t_mprotect.c Mon Apr 25 22:29:35 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_mprotect.c,v 1.3 2011/04/04 10:30:29 jruoho Exp $ */
+/* $NetBSD: t_mprotect.c,v 1.4 2011/04/25 22:29:35 njoly Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_mprotect.c,v 1.3 2011/04/04 10:30:29 jruoho Exp $");
+__RCSID("$NetBSD: t_mprotect.c,v 1.4 2011/04/25 22:29:35 njoly Exp $");
#include <sys/param.h>
#include <sys/mman.h>
@@ -47,7 +47,7 @@
static long page = 0;
static int pax_global = -1;
static int pax_enabled = -1;
-static char path[] = "/tmp/mmap";
+static char path[] = "mmap";
static void sighandler(int);
static bool paxinit(void);
diff -r eba1ff699156 -r f74d83d8328d tests/syscall/t_msync.c
--- a/tests/syscall/t_msync.c Mon Apr 25 22:28:21 2011 +0000
+++ b/tests/syscall/t_msync.c Mon Apr 25 22:29:35 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_msync.c,v 1.2 2011/04/19 10:21:51 martin Exp $ */
+/* $NetBSD: t_msync.c,v 1.3 2011/04/25 22:29:35 njoly Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_msync.c,v 1.2 2011/04/19 10:21:51 martin Exp $");
+__RCSID("$NetBSD: t_msync.c,v 1.3 2011/04/25 22:29:35 njoly Exp $");
#include <sys/mman.h>
@@ -43,7 +43,7 @@
static long page = 0;
static const off_t off = 512;
-static const char path[] = "/tmp/msync";
+static const char path[] = "msync";
static const char *msync_sync(const char *, int);
diff -r eba1ff699156 -r f74d83d8328d tests/syscall/t_setrlimit.c
--- a/tests/syscall/t_setrlimit.c Mon Apr 25 22:28:21 2011 +0000
+++ b/tests/syscall/t_setrlimit.c Mon Apr 25 22:29:35 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_setrlimit.c,v 1.3 2011/04/06 03:47:14 jruoho Exp $ */
+/* $NetBSD: t_setrlimit.c,v 1.4 2011/04/25 22:29:35 njoly Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_setrlimit.c,v 1.3 2011/04/06 03:47:14 jruoho Exp $");
+__RCSID("$NetBSD: t_setrlimit.c,v 1.4 2011/04/25 22:29:35 njoly Exp $");
#include <sys/resource.h>
#include <sys/mman.h>
@@ -45,7 +45,7 @@
#include <unistd.h>
static void sighandler(int);
-static const char path[] = "/tmp/setrlimit";
+static const char path[] = "setrlimit";
static const int rlimit[] = {
RLIMIT_AS,
diff -r eba1ff699156 -r f74d83d8328d tests/syscall/t_umask.c
--- a/tests/syscall/t_umask.c Mon Apr 25 22:28:21 2011 +0000
+++ b/tests/syscall/t_umask.c Mon Apr 25 22:29:35 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_umask.c,v 1.1 2011/04/04 16:32:41 jruoho Exp $ */
+/* $NetBSD: t_umask.c,v 1.2 2011/04/25 22:29:35 njoly Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_umask.c,v 1.1 2011/04/04 16:32:41 jruoho Exp $");
+__RCSID("$NetBSD: t_umask.c,v 1.2 2011/04/25 22:29:35 njoly Exp $");
#include <sys/stat.h>
#include <sys/wait.h>
@@ -40,7 +40,7 @@
#include <string.h>
#include <unistd.h>
-static const char path[] = "/tmp/umask";
+static const char path[] = "umask";
static const mode_t mask[] = {
S_IRWXU,
S_IRUSR,
Home |
Main Index |
Thread Index |
Old Index