From owner-svn-src-head@freebsd.org Fri Jul 21 01:35:57 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0854BD7C5D8; Fri, 21 Jul 2017 01:35:57 +0000 (UTC) (envelope-from kevans@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CBB9C83958; Fri, 21 Jul 2017 01:35:56 +0000 (UTC) (envelope-from kevans@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v6L1ZtIs041758; Fri, 21 Jul 2017 01:35:55 GMT (envelope-from kevans@FreeBSD.org) Received: (from kevans@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v6L1Ztip041757; Fri, 21 Jul 2017 01:35:55 GMT (envelope-from kevans@FreeBSD.org) Message-Id: <201707210135.v6L1Ztip041757@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: kevans set sender to kevans@FreeBSD.org using -f From: Kyle Evans Date: Fri, 21 Jul 2017 01:35:55 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r321315 - head/contrib/netbsd-tests/lib/libc/regex/data X-SVN-Group: head X-SVN-Commit-Author: kevans X-SVN-Commit-Paths: head/contrib/netbsd-tests/lib/libc/regex/data X-SVN-Commit-Revision: 321315 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Jul 2017 01:35:57 -0000 Author: kevans Date: Fri Jul 21 01:35:55 2017 New Revision: 321315 URL: https://svnweb.freebsd.org/changeset/base/321315 Log: Add regression test for recent regex(3) breakage BREs recently became prematurely sensitive to the branching operator, which outright broke expressions that used it instead of failing silently. Test that \| is matching a literal | for the time being. Reviewed by: cem, emaste, ngie Approved by: emaste (mentor) Differential Revision: https://reviews.freebsd.org/D11577 Modified: head/contrib/netbsd-tests/lib/libc/regex/data/subexp.in Modified: head/contrib/netbsd-tests/lib/libc/regex/data/subexp.in ============================================================================== --- head/contrib/netbsd-tests/lib/libc/regex/data/subexp.in Fri Jul 21 00:14:43 2017 (r321314) +++ head/contrib/netbsd-tests/lib/libc/regex/data/subexp.in Fri Jul 21 01:35:55 2017 (r321315) @@ -11,6 +11,9 @@ a(b+)c - abc abc b a(b+)c - abbbc abbbc bbb a(b*)c - ac ac @c (a|ab)(bc([de]+)f|cde) - abcdef abcdef a,bcdef,de +# Begin FreeBSD +a\(b\|c\)d b ab|cd ab|cd b|c +# End FreeBSD # the regression tester only asks for 9 subexpressions a(b)(c)(d)(e)(f)(g)(h)(i)(j)k - abcdefghijk abcdefghijk b,c,d,e,f,g,h,i,j a(b)(c)(d)(e)(f)(g)(h)(i)(j)(k)l - abcdefghijkl abcdefghijkl b,c,d,e,f,g,h,i,j,k