Add test for patterns with multiple ** before /.
authordrepper <drepper>
Thu, 15 Mar 2001 09:33:56 +0000 (09:33 +0000)
committerdrepper <drepper>
Thu, 15 Mar 2001 09:33:56 +0000 (09:33 +0000)
posix/testfnm.c

index b735a26..f316532 100644 (file)
@@ -54,6 +54,9 @@ struct {
   { "a/b", "*a*", FNM_PATHNAME|FNM_LEADING_DIR, 0 },
   { "ab/c", "*a?", FNM_PATHNAME|FNM_LEADING_DIR, 0 },
   { "ab/c", "a?", FNM_PATHNAME|FNM_LEADING_DIR, 0 },
+  { "a/b", "?*/?", FNM_PATHNAME, 0 },
+  { "/b", "*/?", FNM_PATHNAME, 0 },
+  { "/b", "**/?", FNM_PATHNAME, 0 },
 };
 
 int