summaryrefslogtreecommitdiff
path: root/t/t4012-diff-binary.sh
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2008-10-05 17:42:35 -0400
committerJunio C Hamano <gitster@pobox.com>2008-10-18 07:20:36 -0700
commite7881c3594d22eb711654d2febfd577dc4994f34 (patch)
treef206b6f2e4e576c31192284b8decfd8ac0d1c17d /t/t4012-diff-binary.sh
parentf4a75a416f62c0494e06cb42a11c7cc70ec9303e (diff)
downloadgit-e7881c3594d22eb711654d2febfd577dc4994f34.tar.gz
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>
Diffstat (limited to 't/t4012-diff-binary.sh')
-rwxr-xr-xt/t4012-diff-binary.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/t4012-diff-binary.sh b/t/t4012-diff-binary.sh
index 421f4bba3f..3cf5b5c4ea 100755
--- a/t/t4012-diff-binary.sh
+++ b/t/t4012-diff-binary.sh
@@ -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.