You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by wr...@apache.org on 2011/05/17 21:57:57 UTC
svn commit: r1104503 - /apr/apr/trunk/test/testfnmatch.c
Author: wrowe
Date: Tue May 17 19:57:57 2011
New Revision: 1104503
URL: http://svn.apache.org/viewvc?rev=1104503&view=rev
Log:
Worked out a test to reveal the flaw corrected by r1103041
Modified:
apr/apr/trunk/test/testfnmatch.c
Modified: apr/apr/trunk/test/testfnmatch.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/test/testfnmatch.c?rev=1104503&r1=1104502&r2=1104503&view=diff
==============================================================================
--- apr/apr/trunk/test/testfnmatch.c (original)
+++ apr/apr/trunk/test/testfnmatch.c Tue May 17 19:57:57 2011
@@ -94,6 +94,8 @@ static struct pattern_s {
{"\\/test", "/test", FAILS_IF(APR_FNM_NOESCAPE)},
{"tes[]t]", "test", SUCCEEDS},
{"tes[t-]", "test", SUCCEEDS},
+ {"tes[t-]]", "test]", SUCCEEDS},
+ {"tes[t-]]", "test", FAILS},
{"tes[u-]", "test", FAILS},
{"tes[t-]", "tes[t-]", FAILS},
{"test[/-/]", "test[/-/]", SUCCEEDS_IF(APR_FNM_PATHNAME)},