Add GLOB_STAR #ifdef to testcases which require GLOB_STAR support

This commit is contained in:
Enji Cooper 2017-01-16 07:41:39 +00:00
parent f467f63cbb
commit 89964aab17
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/projects/netbsd-tests-upstream-01-2017/; revision=312276

View File

@ -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 **res, size_t len)
}
#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);