Avoid creating test files oustide atf-run temporary tree.

This commit is contained in:
njoly 2011-04-25 22:29:35 +00:00
parent aa6a6987e7
commit dd925c8942
7 changed files with 21 additions and 21 deletions

View File

@ -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 @@ __RCSID("$NetBSD: t_access.c,v 1.3 2011/04/04 07:16:29 jruoho Exp $");
#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);

View File

@ -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 @@ __RCSID("$NetBSD: t_dup.c,v 1.3 2011/04/08 15:35:49 jruoho Exp $");
#include <atf-c.h>
static char path[] = "/tmp/dup";
static char path[] = "dup";
ATF_TC(dup_err);
ATF_TC_HEAD(dup_err, tc)

View File

@ -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 @@ __RCSID("$NetBSD: t_mmap.c,v 1.3 2011/04/19 10:21:51 martin Exp $");
#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);

View File

@ -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 @@ __RCSID("$NetBSD: t_mprotect.c,v 1.3 2011/04/04 10:30:29 jruoho Exp $");
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);

View File

@ -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 @@ __RCSID("$NetBSD: t_msync.c,v 1.2 2011/04/19 10:21:51 martin Exp $");
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);

View File

@ -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 @@ __RCSID("$NetBSD: t_setrlimit.c,v 1.3 2011/04/06 03:47:14 jruoho Exp $");
#include <unistd.h>
static void sighandler(int);
static const char path[] = "/tmp/setrlimit";
static const char path[] = "setrlimit";
static const int rlimit[] = {
RLIMIT_AS,

View File

@ -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 @@ __RCSID("$NetBSD: t_umask.c,v 1.1 2011/04/04 16:32:41 jruoho Exp $");
#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,