Add test cases for FNM_LEADING_DIR.
authordrepper <drepper>
Sat, 21 Oct 2000 07:28:33 +0000 (07:28 +0000)
committerdrepper <drepper>
Sat, 21 Oct 2000 07:28:33 +0000 (07:28 +0000)
posix/tst-fnmatch.input

index 7c79ddc..3e0fb95 100644 (file)
@@ -459,3 +459,26 @@ de_DE.ISO-8859-1 "
 de_DE.ISO-8859-1 "ä"                   "[[=ä=]b]"             0
 de_DE.ISO-8859-1 "b"                   "[[=ä=]b]"             0
 de_DE.ISO-8859-1 "c"                   "[[=ä=]b]"             NOMATCH
+
+# Test of GNU extensions.
+C               "x"                    "x"                    0       PATHNAME|LEADING_DIR
+C               "x/y"                  "x"                    0       PATHNAME|LEADING_DIR
+C               "x/y/z"                "x"                    0       PATHNAME|LEADING_DIR
+C               "x"                    "*"                    0       PATHNAME|LEADING_DIR
+C               "x/y"                  "*"                    0       PATHNAME|LEADING_DIR
+C               "x/y/z"                "*"                    0       PATHNAME|LEADING_DIR
+C               "x"                    "*x"                   0       PATHNAME|LEADING_DIR
+C               "x/y"                  "*x"                   0       PATHNAME|LEADING_DIR
+C               "x/y/z"                "*x"                   0       PATHNAME|LEADING_DIR
+C               "x"                    "x*"                   0       PATHNAME|LEADING_DIR
+C               "x/y"                  "x*"                   0       PATHNAME|LEADING_DIR
+C               "x/y/z"                "x*"                   0       PATHNAME|LEADING_DIR
+C               "x"                    "a"                    NOMATCH PATHNAME|LEADING_DIR
+C               "x/y"                  "a"                    NOMATCH PATHNAME|LEADING_DIR
+C               "x/y/z"                "a"                    NOMATCH PATHNAME|LEADING_DIR
+C               "x"                    "x/y"                  NOMATCH PATHNAME|LEADING_DIR
+C               "x/y"                  "x/y"                  0       PATHNAME|LEADING_DIR
+C               "x/y/z"                "x/y"                  0       PATHNAME|LEADING_DIR
+C               "x"                    "x?y"                  NOMATCH PATHNAME|LEADING_DIR
+C               "x/y"                  "x?y"                  NOMATCH PATHNAME|LEADING_DIR
+C               "x/y/z"                "x?y"                  NOMATCH PATHNAME|LEADING_DIR