wildmatch: make wildmatch's return value compatible with fnmatch
[git/git.git] / test-wildmatch.c
1 #include "cache.h"
2 #include "wildmatch.h"
3
4 int main(int argc, char **argv)
5 {
6 if (!strcmp(argv[1], "wildmatch"))
7 return !!wildmatch(argv[3], argv[2]);
8 else if (!strcmp(argv[1], "iwildmatch"))
9 return !!iwildmatch(argv[3], argv[2]);
10 else if (!strcmp(argv[1], "fnmatch"))
11 return !!fnmatch(argv[3], argv[2], FNM_PATHNAME);
12 else
13 return 1;
14 }