apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r1104503 - /apr/apr/trunk/test/testfnmatch.c
Date Tue, 17 May 2011 19:57:57 GMT
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)},



Mime
View raw message