summaryrefslogtreecommitdiff
path: root/test/testfnmatch.c
diff options
context:
space:
mode:
authorWilliam A. Rowe Jr <wrowe@apache.org>2018-08-30 21:08:28 +0000
committerWilliam A. Rowe Jr <wrowe@apache.org>2018-08-30 21:08:28 +0000
commit232cd26685361833b19d0dbe5d567abe02e005a7 (patch)
treebc2ea7f911f1dac0341d29d9ac5ec772a575fc06 /test/testfnmatch.c
parent65d947c6caef4f1d8e6eacb23607922d37268e91 (diff)
downloadapr-232cd26685361833b19d0dbe5d567abe02e005a7.tar.gz
Revert 1839627, this macro does not result in a usable CC_FOR_BUILD
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1839699 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/testfnmatch.c')
-rw-r--r--test/testfnmatch.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/testfnmatch.c b/test/testfnmatch.c
index 1d1c0315d..d52f5a816 100644
--- a/test/testfnmatch.c
+++ b/test/testfnmatch.c
@@ -135,6 +135,19 @@ static struct pattern_s {
{"test/*", "test/.this", FAILS_IF(APR_FNM_PERIOD | APR_FNM_PATHNAME)},
{"test/?this", "test/.this", FAILS_IF(APR_FNM_PERIOD | APR_FNM_PATHNAME)},
{"test/[.]this", "test/.this", FAILS_IF(APR_FNM_PERIOD | APR_FNM_PATHNAME)},
+
+ {"foo[[]bar", "foo[bar", SUCCEEDS},
+ {"foo]bar", "foo]bar", SUCCEEDS},
+ {"foo[[]]bar", "foo[]bar", SUCCEEDS},
+
+ {"foo[]bar", "foobar", FAILS},
+ {"foo[]]bar", "foo]bar", FAILS},
+ {"foo[!]bar", "foobar", SUCCEEDS},
+ {"foo[^]bar", "foobar", SUCCEEDS},
+ {"foo[!]]bar", "foo]bar", SUCCEEDS},
+ {"foo[^]]bar", "foo]bar", SUCCEEDS},
+ {"foo[!]]bar", "fooXbar", FAILS},
+ {"foo[^]]bar", "fooXbar", FAILS},
{NULL, NULL, 0}
};