Skip to content

Commit

Permalink
t4012: use test_cmp instead of cmp
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jeff King authored and Junio C Hamano committed Oct 18, 2008
1 parent f4a75a4 commit e7881c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions t/t4012-diff-binary.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ cat > expected <<\EOF
EOF
test_expect_success 'diff without --binary' \
'git diff | git apply --stat --summary >current &&
cmp current expected'
test_cmp expected current'

test_expect_success 'diff with --binary' \
'git diff --binary | git apply --stat --summary >current &&
cmp current expected'
test_cmp expected current'

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

0 comments on commit e7881c3

Please sign in to comment.