diff options
author | Junio C Hamano <gitster@pobox.com> | 2022-05-21 01:26:52 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-05-21 01:26:52 +0300 |
commit | 796388bebdd4942a689a9356e26dbb0d8affea08 (patch) | |
tree | dbe9e689fd276b456e57aae17d4e14458756e144 /t | |
parent | f5203a4220759e824e187082db3f4f09a3e0e570 (diff) | |
parent | c36c27e75cb367e16392cc8fc4fd3f311126ab59 (diff) |
Merge branch 'rs/t7812-pcre2-ws-bug-test'
A test to ensure workaround for an earlier pcre2 bug does work.
* rs/t7812-pcre2-ws-bug-test:
t7812: test PCRE2 whitespace bug
Diffstat (limited to 't')
-rwxr-xr-x | t/t7812-grep-icase-non-ascii.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/t/t7812-grep-icase-non-ascii.sh b/t/t7812-grep-icase-non-ascii.sh index 9047d665a1..ac7be54714 100755 --- a/t/t7812-grep-icase-non-ascii.sh +++ b/t/t7812-grep-icase-non-ascii.sh @@ -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 |