diff --git a/t/t7810-grep.sh b/t/t7810-grep.sh
index dc5c08548bb9e0ad7d42d9a6bc88e0756badf457..50658845ca8769e963cfc13b20efb892f1f63cc0 100755 (executable)
--- a/t/t7810-grep.sh
+++ b/t/t7810-grep.sh
test_expect_success "grep -w $L (w)" '
: >expected &&
- ! git grep -n -w -e "^w" >actual &&
+ test_must_fail git grep -n -w -e "^w" >actual &&
test_cmp expected actual
'