From: Jeff King Date: Sun, 5 Oct 2008 21:42:35 +0000 (-0400) Subject: t4012: use test_cmp instead of cmp X-Git-Tag: v1.6.1-rc1~113^2~3 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e7881c3594d22eb711654d2febfd577dc4994f34;p=git.git 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 Signed-off-by: Shawn O. Pearce --- diff --git a/t/t4012-diff-binary.sh b/t/t4012-diff-binary.sh index 421f4bba3..3cf5b5c4e 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.