X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft7002-grep.sh;h=b81593780a2a6adaf34bb10293b607e3a303cfcd;hb=55524fcf9d6676ca3840227092bf3a14ba404615;hp=c4938544d4ca7c5e7e886a59144c9b10b7971748;hpb=141b6b83d7ca5bd32d55a0a7e08384084d081557;p=git.git diff --git a/t/t7002-grep.sh b/t/t7002-grep.sh index c4938544d..b81593780 100755 --- a/t/t7002-grep.sh +++ b/t/t7002-grep.sh @@ -26,6 +26,10 @@ test_expect_success setup ' git commit -m initial ' +test_expect_success 'grep should not segfault with a bad input' ' + test_must_fail git grep "(" +' + for H in HEAD '' do case "$H" in