Return-Path: X-Original-To: apmail-apr-commits-archive@www.apache.org Delivered-To: apmail-apr-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 26C36668D for ; Sat, 14 May 2011 09:42:16 +0000 (UTC) Received: (qmail 5143 invoked by uid 500); 14 May 2011 09:42:16 -0000 Delivered-To: apmail-apr-commits-archive@apr.apache.org Received: (qmail 5102 invoked by uid 500); 14 May 2011 09:42:16 -0000 Mailing-List: contact commits-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: Reply-To: dev@apr.apache.org List-Id: Delivered-To: mailing list commits@apr.apache.org Received: (qmail 5095 invoked by uid 99); 14 May 2011 09:42:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 14 May 2011 09:42:16 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 14 May 2011 09:42:14 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id DF87023888FE; Sat, 14 May 2011 09:41:52 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1102987 - /apr/apr/trunk/test/testfnmatch.c Date: Sat, 14 May 2011 09:41:52 -0000 To: commits@apr.apache.org From: wrowe@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110514094152.DF87023888FE@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: wrowe Date: Sat May 14 09:41:52 2011 New Revision: 1102987 URL: http://svn.apache.org/viewvc?rev=1102987&view=rev Log: Catch several faulty edgecases, no serious harm done 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=1102987&r1=1102986&r2=1102987&view=diff ============================================================================== --- apr/apr/trunk/test/testfnmatch.c (original) +++ apr/apr/trunk/test/testfnmatch.c Sat May 14 09:41:52 2011 @@ -92,6 +92,16 @@ static struct pattern_s { {"te[r-Tz]t", "tezt", SUCCEEDS}, {"te[R-T]t", "tent", FAILS}, {"\\/test", "/test", FAILS_IF(APR_FNM_NOESCAPE)}, + {"tes[]t]", "test", SUCCEEDS}, + {"tes[t-]", "test", SUCCEEDS}, + {"tes[u-]", "test", FAILS}, + {"tes[t-]", "tes[t-]", FAILS}, + {"test[/-/]", "test[/-/]", SUCCEEDS_IF(APR_FNM_PATHNAME)}, + {"test[\\/-/]", "test[/-/]", APR_FNM_PATHNAME, APR_FNM_NOESCAPE}, + {"test[/-\\/]", "test[/-/]", APR_FNM_PATHNAME, APR_FNM_NOESCAPE}, + {"test[/-/]", "test/", FAILS_IF(APR_FNM_PATHNAME)}, + {"test[\\/-/]", "test/", FAILS_IF(APR_FNM_PATHNAME)}, + {"test[/-\\/]", "test/", FAILS_IF(APR_FNM_PATHNAME)}, {"test/this", "test/", FAILS}, {"test/", "test/this", FAILS},