diff --git a/t/t7002-grep.sh b/t/t7002-grep.sh
index dd0da6c0bf45524b75de9dbaf67bbbef724fdf4e..abd14bf819f5c60fc1b9dc758c04974bd24b10a4 100755 (executable)
--- a/t/t7002-grep.sh
+++ b/t/t7002-grep.sh
{
printf("Hello world.\n");
return 0;
+ /* char ?? */
}
EOF
)
'
+cat >expected <<EOF
+hello.c:int main(int argc, const char **argv)
+EOF
+
+test_expect_success 'grep -Fi' '
+ git grep -Fi "CHAR *" >actual &&
+ test_cmp expected actual
+'
+
test_done