Module Name:    src
Committed By:   jruoho
Date:           Sun Nov  6 16:18:27 UTC 2011

Modified Files:
        src/tests/include: t_paths.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/tests/include/t_paths.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tests/include/t_paths.c
diff -u src/tests/include/t_paths.c:1.10 src/tests/include/t_paths.c:1.11
--- src/tests/include/t_paths.c:1.10	Sat Nov  5 08:49:24 2011
+++ src/tests/include/t_paths.c	Sun Nov  6 16:18:27 2011
@@ -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/
 #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++) {

Reply via email to