mirror of
https://github.com/git/git.git
synced 2026-03-17 20:20:08 +01:00
Side-step line-ending corruption leading to t3032 failures.
By default, MSYS grep and sed throw away CR from CRLF line-endings. Tests t3032.4 through t3032.8 employ grep and fail due to this behavior. Test t3032.9 employs sed and fails. Fix by employing grep's -U/--binary and sed's -b/--binary switches to suppress the default behavior of dropping CR characters. Signed-off-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
This commit is contained in:
committed by
Johannes Schindelin
parent
8e7ccdb919
commit
f3b86ef5dd
@@ -13,9 +13,14 @@ test_description='merge-recursive options
|
||||
|
||||
. ./test-lib.sh
|
||||
|
||||
if test_have_prereq MINGW; then
|
||||
export GREP_OPTIONS=-U
|
||||
SED_OPTIONS=-b
|
||||
fi
|
||||
|
||||
test_expect_success 'setup' '
|
||||
conflict_hunks () {
|
||||
sed -n -e "
|
||||
sed $SED_OPTIONS -n -e "
|
||||
/^<<<</ b inconflict
|
||||
b
|
||||
: inconflict
|
||||
@@ -69,7 +74,7 @@ test_expect_success 'setup' '
|
||||
git commit -m "Initial revision" &&
|
||||
|
||||
git checkout -b remote &&
|
||||
sed -e "
|
||||
sed $SED_OPTIONS -e "
|
||||
s/\. /\. /g
|
||||
s/[?] /? /g
|
||||
s/ / /g
|
||||
@@ -81,7 +86,7 @@ test_expect_success 'setup' '
|
||||
git commit -a -m "Remove cruft" &&
|
||||
|
||||
git checkout master &&
|
||||
sed -e "
|
||||
sed $SED_OPTIONS -e "
|
||||
s/\(not in his right mind\),\(.*\)/\1;\2Q/
|
||||
s/Quite correct\(.*\)/It is too correct\1Q/
|
||||
s/unintentionally/un intentionally/
|
||||
|
||||
Reference in New Issue
Block a user