Add test cases for * with FNM_PATHNAME errors.
authordrepper <drepper>
Mon, 26 Apr 1999 07:49:59 +0000 (07:49 +0000)
committerdrepper <drepper>
Mon, 26 Apr 1999 07:49:59 +0000 (07:49 +0000)
posix/testfnm.c

index 5ab761b..b43f953 100644 (file)
@@ -13,6 +13,9 @@ struct {
   { "a/b", "a[/]b", 0, 0 },
   { "a/b", "a[/]b", FNM_PATHNAME, FNM_NOMATCH },
   { "a/b", "[a-z]/[a-z]", 0, 0 },
+  { "a/b", "*", FNM_FILE_NAME, FNM_NOMATCH },
+  { "a/b", "*[/]b", FNM_FILE_NAME, FNM_NOMATCH },
+  { "a/b", "*[b]", FNM_FILE_NAME, FNM_NOMATCH }
 };
 
 int