12 int r
= glob ("", 0, NULL
, &g
);
13 if (r
!= GLOB_NOMATCH
)
15 puts ("glob (\"\", 0, NULL, &g) did not fail");
18 else if (g
.gl_pathc
!= 0)
20 puts ("gl_pathc after glob (\"\", 0, NULL, &g) not zero");
24 r
= glob ("", GLOB_NOCHECK
, NULL
, &g
);
27 puts ("glob (\"\", GLOB_NOCHECK, NULL, &g) did fail");
30 else if (g
.gl_pathc
!= 1)
32 puts ("gl_pathc after glob (\"\", GLOB_NOCHECK, NULL, &g) not 1");
35 else if (strcmp (g
.gl_pathv
[0], "") != 0)
37 puts ("gl_pathv[0] after glob (\"\", GLOB_NOCHECK, NULL, &g) not \"\"");
44 #define TEST_FUNCTION do_test ()
45 #include "../test-skeleton.c"