Skip to content

Commit e7881c3

Browse files
peffgitster
authored andcommitted
t4012: use test_cmp instead of cmp
This makes erroneous output slightly easier to see. We also flip the argument order to match our usual style. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
1 parent f4a75a4 commit e7881c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

t/t4012-diff-binary.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ cat > expected <<\EOF
2525
EOF
2626
test_expect_success 'diff without --binary' \
2727
'git diff | git apply --stat --summary >current &&
28-
cmp current expected'
28+
test_cmp expected current'
2929

3030
test_expect_success 'diff with --binary' \
3131
'git diff --binary | git apply --stat --summary >current &&
32-
cmp current expected'
32+
test_cmp expected current'
3333

3434
# apply needs to be able to skip the binary material correctly
3535
# in order to report the line number of a corrupt patch.

0 commit comments

Comments
 (0)