svn commit: r312276 - projects/netbsd-tests-upstream-01-2017/contrib/netbsd-tests/lib/libc/gen

Ngie Cooper ngie at FreeBSD.org
Mon Jan 16 07:41:41 UTC 2017


Author: ngie
Date: Mon Jan 16 07:41:39 2017
New Revision: 312276
URL: https://svnweb.freebsd.org/changeset/base/312276

Log:
  Add GLOB_STAR #ifdef to testcases which require GLOB_STAR support

Modified:
  projects/netbsd-tests-upstream-01-2017/contrib/netbsd-tests/lib/libc/gen/t_glob.c

Modified: projects/netbsd-tests-upstream-01-2017/contrib/netbsd-tests/lib/libc/gen/t_glob.c
==============================================================================
--- projects/netbsd-tests-upstream-01-2017/contrib/netbsd-tests/lib/libc/gen/t_glob.c	Mon Jan 16 07:39:08 2017	(r312275)
+++ projects/netbsd-tests-upstream-01-2017/contrib/netbsd-tests/lib/libc/gen/t_glob.c	Mon Jan 16 07:41:39 2017	(r312276)
@@ -85,7 +85,7 @@ static struct gl_dir d[] = {
 	{ "a/b", b, __arraycount(b), 0 },
 };
 
-#ifndef __FreeBSD__
+#ifdef GLOB_STAR
 static const char *glob_star[] = {
     "a/1", "a/3", "a/4", "a/b", "a/b/w", "a/b/x", "a/b/y", "a/b/z",
 };
@@ -219,7 +219,7 @@ run(const char *p, int flags, const char
 }
 
 
-#ifndef __FreeBSD__
+#ifdef GLOB_STAR
 ATF_TC(glob_star);
 ATF_TC_HEAD(glob_star, tc)
 {
@@ -268,7 +268,7 @@ ATF_TC_BODY(glob_nocheck, tc)
 
 ATF_TP_ADD_TCS(tp)
 {
-#ifndef __FreeBSD__
+#ifdef GLOB_STAR
 	ATF_TP_ADD_TC(tp, glob_star);
 #endif
 	ATF_TP_ADD_TC(tp, glob_star_not);


More information about the svn-src-projects mailing list