grep: use REG_STARTEND for all matching if available
[gitweb.git] / t / t7008-grep-binary.sh
index 9660842c446f78b4b35fa9162235753a85eeee9f..4f5e74fed77a484c4c0b7bd9de7f0b95cf714a22 100755 (executable)
@@ -59,4 +59,14 @@ test_expect_success 'git grep -Fi iLE a' '
        git grep -Fi iLE a
 '
 
+# This test actually passes on platforms where regexec() supports the
+# flag REG_STARTEND.
+test_expect_failure 'git grep ile a' '
+       git grep ile a
+'
+
+test_expect_failure 'git grep .fi a' '
+       git grep .fi a
+'
+
 test_done