summaryrefslogtreecommitdiff
path: root/t/t3010-ls-files-killed-modified.sh
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@frugalware.org>2009-03-16 21:18:42 +0100
committerJunio C Hamano <gitster@pobox.com>2009-03-17 14:25:52 -0700
commit188c3827c10f5a04588ef7af8b63a7b5dbcc38ed (patch)
tree5f21da7b7c4a13c52f785fa27577616ea3fa3204 /t/t3010-ls-files-killed-modified.sh
parentdcb11263bcdbf31955dd00777392249bf1624226 (diff)
downloadgit-188c3827c10f5a04588ef7af8b63a7b5dbcc38ed.tar.gz
Tests: use test_cmp instead of diff where possible
Several old tests were written before test_cmp was introduced, convert these to test_cmp. If were are at it, fix the order of the arguments where necessary to make expected come first, so the command shows how the test result deviates from the correct output. Signed-off-by: Miklos Vajna <vmiklos@frugalware.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t3010-ls-files-killed-modified.sh')
-rwxr-xr-xt/t3010-ls-files-killed-modified.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/t3010-ls-files-killed-modified.sh b/t/t3010-ls-files-killed-modified.sh
index ec14040637..e4f02a0968 100755
--- a/t/t3010-ls-files-killed-modified.sh
+++ b/t/t3010-ls-files-killed-modified.sh
@@ -75,7 +75,7 @@ EOF
test_expect_success \
'validate git ls-files -k output.' \
- 'diff .output .expected'
+ 'test_cmp .expected .output'
test_expect_success \
'git ls-files -m to show modified files.' \
@@ -91,6 +91,6 @@ EOF
test_expect_success \
'validate git ls-files -m output.' \
- 'diff .output .expected'
+ 'test_cmp .expected .output'
test_done