@matheusbsbs / matheus-bagliano / commits / e7881c3594
Fork 0

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>

Jeff King committed Oct 5, 2008 at 17:42 UTC e7881c3594d22eb711654d2febfd577dc4994f34
1 file changed +2 -2
t/t4012-diff-binary.sh
+2 -2
@@ -25,11 +25,11 @@ cat > expected <<\EOF
25 EOF
26 test_expect_success 'diff without --binary' \
27 'git diff | git apply --stat --summary >current &&
28 - cmp current expected'
28 + test_cmp expected current'
29
30 test_expect_success 'diff with --binary' \
31 'git diff --binary | git apply --stat --summary >current &&
32 - cmp current expected'
32 + test_cmp expected current'
33
34 # apply needs to be able to skip the binary material correctly
35 # in order to report the line number of a corrupt patch.