From: Jeff King Date: Sun, 8 Mar 2009 01:22:07 +0000 (-0500) Subject: t3000: use test_cmp instead of diff X-Git-Tag: v1.6.3-rc0~121^2~1 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8a3b25da8cdd7f3aa75f18d3245ce83aca90bb1a;p=git.git 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 Signed-off-by: Junio C Hamano --- diff --git a/t/t3000-ls-files-others.sh b/t/t3000-ls-files-others.sh index bc0a35139..36eee0f8a 100755 --- a/t/t3000-ls-files-others.sh +++ b/t/t3000-ls-files-others.sh @@ -42,7 +42,7 @@ test_expect_success \ test_expect_success \ 'git ls-files --others should pick up symlinks.' \ - 'diff output expected1' + 'test_cmp expected1 output' test_expect_success \ 'git ls-files --others --directory to show output.' \ @@ -51,6 +51,6 @@ test_expect_success \ test_expect_success \ 'git ls-files --others --directory should not get confused.' \ - 'diff output expected2' + 'test_cmp expected2 output' test_done