diff options
| author | jruoho <jruoho@NetBSD.org> | 2011-11-06 16:18:27 +0000 |
|---|---|---|
| committer | jruoho <jruoho@NetBSD.org> | 2011-11-06 16:18:27 +0000 |
| commit | 6efa7a8723da717b4acdf2de9331e990e03eadd0 (patch) | |
| tree | 94e990d4f1dcee6828d6e234076ddecd05968a72 /tests/include | |
| parent | eaee7e44dda2d90b637322594bddbcfdb6b73142 (diff) | |
Skip the test on sparc and point to PR port-sparc/45580.
Diffstat (limited to 'tests/include')
| -rw-r--r-- | tests/include/t_paths.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/include/t_paths.c b/tests/include/t_paths.c index 446a419a21a..2d74bd126ef 100644 --- a/tests/include/t_paths.c +++ b/tests/include/t_paths.c @@ -1,4 +1,4 @@ -/* $NetBSD: t_paths.c,v 1.10 2011/11/05 08:49:24 jruoho Exp $ */ +/* $NetBSD: t_paths.c,v 1.11 2011/11/06 16:18:27 jruoho Exp $ */ /*- * Copyright (c) 2011 The NetBSD Foundation, Inc. @@ -29,7 +29,7 @@ * POSSIBILITY OF SUCH DAMAGE. */ #include <sys/cdefs.h> -__RCSID("$NetBSD: t_paths.c,v 1.10 2011/11/05 08:49:24 jruoho Exp $"); +__RCSID("$NetBSD: t_paths.c,v 1.11 2011/11/06 16:18:27 jruoho Exp $"); #include <sys/param.h> #include <sys/stat.h> @@ -42,6 +42,7 @@ __RCSID("$NetBSD: t_paths.c,v 1.10 2011/11/05 08:49:24 jruoho Exp $"); #include <unistd.h> #include <atf-c.h> +#include <atf-c/config.h> #define PATH_DEV __BIT(0) /* A device node */ #define PATH_DIR __BIT(1) /* A directory */ @@ -119,12 +120,18 @@ ATF_TC_HEAD(paths, tc) ATF_TC_BODY(paths, tc) { + const char *arch; struct stat st; uid_t uid; mode_t m; size_t i; int fd; + arch = atf_config_get("atf_arch"); + + if (strcmp(arch, "sparc") == 0) + atf_tc_skip("PR port-sparc/45580"); + uid = getuid(); for (i = 0; i < __arraycount(paths); i++) { |
