diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-12-13 13:28:54 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-12-13 13:28:54 -0800 |
commit | b3f04e5b4c7e04d70e4cef74b4848dd198653cbb (patch) | |
tree | 651a7cca05c68f898937bdd017988d91ab4aa75a /t/t7810-grep.sh | |
parent | 6c3daa23461333c508c41faa532c6fb749cd0db0 (diff) | |
parent | a25b9085043b8029169b4d5b172b78ca3f38fb37 (diff) | |
download | git-b3f04e5b4c7e04d70e4cef74b4848dd198653cbb.tar.gz |
Merge branch 'ab/pcre2-grep'
"git grep" compiled with libpcre2 sometimes triggered a segfault,
which is being fixed.
* ab/pcre2-grep:
grep: fix segfault under -P + PCRE2 <=10.30 + (*NO_JIT)
test-lib: add LIBPCRE1 & LIBPCRE2 prerequisites
Diffstat (limited to 't/t7810-grep.sh')
-rwxr-xr-x | t/t7810-grep.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/t/t7810-grep.sh b/t/t7810-grep.sh index c02ca735b9..1797f632a3 100755 --- a/t/t7810-grep.sh +++ b/t/t7810-grep.sh @@ -1131,6 +1131,12 @@ test_expect_success PCRE 'grep -P pattern' ' test_cmp expected actual ' +test_expect_success LIBPCRE2 "grep -P with (*NO_JIT) doesn't error out" ' + git grep -P "(*NO_JIT)\p{Ps}.*?\p{Pe}" hello.c >actual && + test_cmp expected actual + +' + test_expect_success !PCRE 'grep -P pattern errors without PCRE' ' test_must_fail git grep -P "foo.*bar" ' |