Skip to content

Commit bfc817d

Browse files
committed
Merge branch 'ab/wildmatch-tests'
More tests for wildmatch functions. * ab/wildmatch-tests: wildmatch test: mark test as EXPENSIVE_ON_WINDOWS test-lib: add an EXPENSIVE_ON_WINDOWS prerequisite wildmatch test: create & test files on disk in addition to in-memory wildmatch test: perform all tests under all wildmatch() modes wildmatch test: use test_must_fail, not ! for test-wildmatch wildmatch test: remove dead fnmatch() test code wildmatch test: use a paranoia pattern from nul_match() wildmatch test: don't try to vertically align our output wildmatch test: use more standard shell style wildmatch test: indent with tabs, not spaces
2 parents 8be8342 + 8725923 commit bfc817d

File tree

3 files changed

+416
-245
lines changed

3 files changed

+416
-245
lines changed

t/helper/test-wildmatch.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ int cmd_main(int argc, const char **argv)
1616
return !!wildmatch(argv[3], argv[2], WM_PATHNAME | WM_CASEFOLD);
1717
else if (!strcmp(argv[1], "pathmatch"))
1818
return !!wildmatch(argv[3], argv[2], 0);
19+
else if (!strcmp(argv[1], "ipathmatch"))
20+
return !!wildmatch(argv[3], argv[2], WM_CASEFOLD);
1921
else
2022
return 1;
2123
}

0 commit comments

Comments
 (0)