aboutsummaryrefslogtreecommitdiff
path: root/t/test-lib.sh
diff options
context:
space:
mode:
authorMark Levedahl <mlevedahl@gmail.com>2013-07-18 17:44:57 -0400
committerJunio C Hamano <gitster@pobox.com>2013-07-18 16:44:40 -0700
commit97669eed109f5dea7dffe771d8f6aba4acf84b27 (patch)
treec9df4fe8aa6a4e9e49a5ef5a5716109051da30f2 /t/test-lib.sh
parentf59bebb78edb26e4f66c2754bc4d168c5d4ebb4a (diff)
downloadgit-97669eed109f5dea7dffe771d8f6aba4acf84b27.tar.gz
git-97669eed109f5dea7dffe771d8f6aba4acf84b27.tar.xz
test-lib.sh - define and use GREP_STRIPS_CR
Define a common macro for grep needing -U to allow tests to not need to inquire of specific platforms needing this option. Change t3032 and t5560 to use this rather than testing explicitly for mingw. This fixes these two tests on Cygwin. Signed-off-by: Mark Levedahl <mlevedahl@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/test-lib.sh')
-rw-r--r--t/test-lib.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh
index 657b0bd86..6d4d11b7a 100644
--- a/t/test-lib.sh
+++ b/t/test-lib.sh
@@ -668,6 +668,7 @@ case $(uname -s) in
test_set_prereq MINGW
test_set_prereq NOT_CYGWIN
test_set_prereq SED_STRIPS_CR
+ test_set_prereq GREP_STRIPS_CR
;;
*CYGWIN*)
test_set_prereq POSIXPERM
@@ -675,6 +676,7 @@ case $(uname -s) in
test_set_prereq NOT_MINGW
test_set_prereq CYGWIN
test_set_prereq SED_STRIPS_CR
+ test_set_prereq GREP_STRIPS_CR
;;
*)
test_set_prereq POSIXPERM