Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/include Skip the test on sparc and point to PR port-sp...



details:   https://anonhg.NetBSD.org/src/rev/293a0172186c
branches:  trunk
changeset: 771034:293a0172186c
user:      jruoho <jruoho%NetBSD.org@localhost>
date:      Sun Nov 06 16:18:27 2011 +0000

description:
Skip the test on sparc and point to PR port-sparc/45580.

diffstat:

 tests/include/t_paths.c |  11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diffs (45 lines):

diff -r c91f5a10d9e6 -r 293a0172186c tests/include/t_paths.c
--- a/tests/include/t_paths.c   Sun Nov 06 16:08:28 2011 +0000
+++ b/tests/include/t_paths.c   Sun Nov 06 16:18:27 2011 +0000
@@ -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 @@
 #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_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++) {



Home | Main Index | Thread Index | Old Index