@matheusbsbs / matheus-bagliano / commits / 8a3b25da8c
Fork 0

t3000: use test_cmp instead of diff

These ancient tests predate test_cmp. While we're at it, let's switch to our usual "expected before actual" order of arguments; this makes the diff output "here's what is changed from expected" instead of the reverse. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Jeff King committed Mar 7, 2009 at 20:22 UTC 8a3b25da8cdd7f3aa75f18d3245ce83aca90bb1a
1 file changed +2 -2
t/t3000-ls-files-others.sh
+2 -2
@@ -42,7 +42,7 @@ test_expect_success \
42
43 test_expect_success \
44 'git ls-files --others should pick up symlinks.' \
45 - 'diff output expected1'
45 + 'test_cmp expected1 output'
46
47 test_expect_success \
48 'git ls-files --others --directory to show output.' \
@@ -51,6 +51,6 @@ test_expect_success \
51
52 test_expect_success \
53 'git ls-files --others --directory should not get confused.' \
54 - 'diff output expected2'
54 + 'test_cmp expected2 output'
55
56 test_done