Skip to content

Commit 0f77827

Browse files
j6tt-b
authored andcommitted
t9300: use test_cmp_bin instead of test_cmp to compare binary files
test_cmp is intended to produce diff output for human consumption. The input in one instance in t9300-fast-import.sh are binary files, however. Use test_cmp_bin to compare the files. This was noticed because on Windows we have a special implementation of test_cmp in pure bash code (to ignore differences due to intermittent CR in actual output), and bash runs into an infinite loop due to the binary nature of the input. Signed-off-by: Johannes Sixt <j6t@kdbg.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent ccb6a7a commit 0f77827

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t9300-fast-import.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2687,7 +2687,7 @@ test_expect_success 'R: verify created pack' '
26872687
test_expect_success \
26882688
'R: verify written objects' \
26892689
'git --git-dir=R/.git cat-file blob big-file:big1 >actual &&
2690-
test_cmp expect actual &&
2690+
test_cmp_bin expect actual &&
26912691
a=$(git --git-dir=R/.git rev-parse big-file:big1) &&
26922692
b=$(git --git-dir=R/.git rev-parse big-file:big2) &&
26932693
test $a = $b'

0 commit comments

Comments
 (0)