Merge branch 'ls/editor-waiting-message'
[gitweb.git] / t / t7810-grep.sh
index 632b905611a1b818067d0493d95d67b712988fdd..1797f632a388d16f23a47c7693c7a3f0f0deabf6 100755 (executable)
@@ -785,7 +785,7 @@ test_expect_success 'grep -W with userdiff' '
        git grep -W echo >function-context-userdiff-actual
 '
 
-test_expect_failure ' includes preceding comment' '
+test_expect_success ' includes preceding comment' '
        grep "# Say hello" function-context-userdiff-actual
 '
 
@@ -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"
 '