diff options
author | Ulrich Drepper <drepper@redhat.com> | 1999-04-26 07:50:45 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1999-04-26 07:50:45 +0000 |
commit | 45a89cc6c636d0e68b32e7c5ee43911209d19087 (patch) | |
tree | c7fcd9ec4983aec593be0927f20d92fbf24f5005 /posix/testfnm.c | |
parent | 62ece32bb4a0aebd2895d9e16b235eee70ce5ce3 (diff) | |
download | glibc-45a89cc6c636d0e68b32e7c5ee43911209d19087.tar.gz glibc-45a89cc6c636d0e68b32e7c5ee43911209d19087.tar.xz glibc-45a89cc6c636d0e68b32e7c5ee43911209d19087.zip |
Update.
1999-04-26 Ulrich Drepper <drepper@cygnus.com> * posix/fnmatch.c: Include string.h also for glibc. (fnmatch, case '?'): Optimize if cascades a bit. (fnmatch, case '*'): Correct handling if FNM_PATHNAME is set. * posix/testfnm.c: Add test cases for * with FNM_PATHNAME errors.
Diffstat (limited to 'posix/testfnm.c')
-rw-r--r-- | posix/testfnm.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/posix/testfnm.c b/posix/testfnm.c index 5ab761b8b2..b43f9531fb 100644 --- a/posix/testfnm.c +++ b/posix/testfnm.c @@ -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 |