summaryrefslogtreecommitdiff
path: root/t/t3000-ls-files-others.sh
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2009-03-08 01:22:07 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-03-08 03:54:05 (GMT)
commit8a3b25da8cdd7f3aa75f18d3245ce83aca90bb1a (patch)
tree07da4f9d0d6c4e7b05c0e7f6577d370147fa73f4 /t/t3000-ls-files-others.sh
parentce8e8804068772a24354ee24641ca65ffa417837 (diff)
downloadgit-8a3b25da8cdd7f3aa75f18d3245ce83aca90bb1a.zip
git-8a3b25da8cdd7f3aa75f18d3245ce83aca90bb1a.tar.gz
git-8a3b25da8cdd7f3aa75f18d3245ce83aca90bb1a.tar.bz2
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>
Diffstat (limited to 't/t3000-ls-files-others.sh')
-rwxr-xr-xt/t3000-ls-files-others.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/t3000-ls-files-others.sh b/t/t3000-ls-files-others.sh
index bc0a351..36eee0f 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