Skip to content

Commit d892bec

Browse files
t-bsschuberth
authored andcommitted
t0061: Work around a line endings issue with newer versions of cat on MSYS
While msysgit uses cat 2.0, mingwGitDevEnv uses cat 5.97, currently. A change part of the latter version [1] makes cat use the "same rules as other programs to decide whether to use binary I/O". As a result, cat 5.97 behaves like e.g. awk with respect to which line endings are used if stdout is redirected to a file, and those are DOS line endings. Ignore line endings when comparing the test result to work around this. [1] http://git.savannah.gnu.org/gitweb/?p=coreutils.git;a=commit;h=8770c00ef45e3c6c4dd3d5ce1e55a6fb1adb13dc Signed-off-by: Thomas Braun <[email protected]> Signed-off-by: Sebastian Schuberth <[email protected]>
1 parent ab94cf6 commit d892bec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t0061-run-command.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ test_expect_success 'run_command can run a command' '
2222
chmod +x hello.sh &&
2323
test-run-command run-command ./hello.sh >actual 2>err &&
2424
25-
test_cmp hello-script actual &&
25+
test_cmp_text hello-script actual &&
2626
test_cmp empty err
2727
'
2828

0 commit comments

Comments
 (0)