1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-05-06 07:36:37 +02:00

Merge branch 'rs/t7812-pcre2-ws-bug-test' into next

A test to ensure workaround for an earlier pcre2 bug does work.

* rs/t7812-pcre2-ws-bug-test:
  t7812: test PCRE2 whitespace bug
This commit is contained in:
Junio C Hamano 2022-05-12 13:25:07 -07:00
commit 0e0ce3b493

View File

@ -4,6 +4,10 @@ test_description='grep icase on non-English locales'
. ./lib-gettext.sh
doalarm () {
perl -e 'alarm shift; exec @ARGV' -- "$@"
}
test_expect_success GETTEXT_LOCALE 'setup' '
test_write_lines "TILRAUN: Halló Heimur!" >file &&
git add file &&
@ -139,4 +143,10 @@ test_expect_success GETTEXT_LOCALE,LIBPCRE2 'PCRE v2: grep non-literal ASCII fro
test_cmp expected actual
'
test_expect_success GETTEXT_LOCALE,LIBPCRE2 'PCRE v2: grep avoid endless loop bug' '
echo " Halló" >leading-whitespace &&
git add leading-whitespace &&
doalarm 1 git grep --perl-regexp "^\s" leading-whitespace
'
test_done