Skip to content

Commit 7810c6b

Browse files
committed
Merge branch 'rj/test-fixes'
* rj/test-fixes: t4135-*.sh: Skip the "backslash" tests on cygwin t3032-*.sh: Do not strip CR from line-endings while grepping on MinGW t3032-*.sh: Pass the -b (--binary) option to sed on cygwin t6038-*.sh: Pass the -b (--binary) option to sed on cygwin Conflicts: t/t3032-merge-recursive-options.sh
2 parents 37ee62b + 5b5d53c commit 7810c6b

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

t/t3032-merge-recursive-options.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,12 @@ test_description='merge-recursive options
1313

1414
. ./test-lib.sh
1515

16+
test_have_prereq SED_STRIPS_CR && SED_OPTIONS=-b
17+
test_have_prereq MINGW && export GREP_OPTIONS=-U
18+
1619
test_expect_success 'setup' '
1720
conflict_hunks () {
18-
sed -n -e "
21+
sed $SED_OPTIONS -n -e "
1922
/^<<<</ b conflict
2023
b
2124
: conflict

t/t6038-merge-text-auto.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ test_description='CRLF merge conflict across text=auto change
1414

1515
. ./test-lib.sh
1616

17-
test_have_prereq MINGW && SED_OPTIONS=-b
17+
test_have_prereq SED_STRIPS_CR && SED_OPTIONS=-b
1818

1919
test_expect_success setup '
2020
git config core.autocrlf false &&

t/test-lib.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1057,6 +1057,13 @@ case $(uname -s) in
10571057
# backslashes in pathspec are converted to '/'
10581058
# exec does not inherit the PID
10591059
test_set_prereq MINGW
1060+
test_set_prereq SED_STRIPS_CR
1061+
;;
1062+
*CYGWIN*)
1063+
test_set_prereq POSIXPERM
1064+
test_set_prereq EXECKEEPSPID
1065+
test_set_prereq NOT_MINGW
1066+
test_set_prereq SED_STRIPS_CR
10601067
;;
10611068
*)
10621069
test_set_prereq POSIXPERM

0 commit comments

Comments
 (0)