summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-05-25 22:06:50 (GMT)
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-05-25 22:21:57 (GMT)
commit908bddab96230ed6d43726a8464057ad4c32d1a1 (patch)
treebe441b3be9f356407a68bddae3a5903c15412718
parentc5434dead6a52a48c520dfa3d8ed24dc3673ab1a (diff)
downloadgit-908bddab96230ed6d43726a8464057ad4c32d1a1.zip
git-908bddab96230ed6d43726a8464057ad4c32d1a1.tar.gz
git-908bddab96230ed6d43726a8464057ad4c32d1a1.tar.bz2
[PATCH] Adjust show-files test for dotfiles.
The earlier test was relying on the fact that dotfiles do not appear in the output to prepare expected test results, which inevitably got broken when we started handling dotfiles. Change the test to be honest about what "--other" file it creates. The problem was originally pointed out by Mark Allen. Signed-off-by: Junio C Hamano <junkio@cox.net> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rwxr-xr-xt/t3000-ls-files-others.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/t/t3000-ls-files-others.sh b/t/t3000-ls-files-others.sh
index 7f93e1c..1f461e3 100755
--- a/t/t3000-ls-files-others.sh
+++ b/t/t3000-ls-files-others.sh
@@ -20,8 +20,9 @@ mkdir path2
date >path2/file2
test_expect_success \
'git-ls-files --others to show output.' \
- 'git-ls-files --others >.output'
-cat >.expected <<EOF
+ 'git-ls-files --others >output'
+cat >expected <<EOF
+output
path0
path1
path2/file2
@@ -29,5 +30,5 @@ EOF
test_expect_success \
'git-ls-files --others should pick up symlinks.' \
- 'diff .output .expected'
+ 'diff output expected'
test_done