summaryrefslogtreecommitdiff
path: root/t/t0050-filesystem.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-02-28 23:31:21 -0800
committerJunio C Hamano <gitster@pobox.com>2010-03-13 23:22:50 -0800
commit0d7c2430ab0e25ab973f4b3cf1fae1f22de82fb2 (patch)
treedc3f91457edd354ffeeb4466c994ee4f790e62a8 /t/t0050-filesystem.sh
parent48ffef966c762578eb818c0c54a7e11dd054f5db (diff)
downloadgit-0d7c2430ab0e25ab973f4b3cf1fae1f22de82fb2.tar.gz
t0050: mark non-working test as such
The test is to prepare an empty file "camelcase" in the index, remove and replace it with another file "CamelCase" with "1" as its contents in the working tree, and add it to the index, in a repository configured to be case insensitive. However, the test actually checked ls-files knows about a pathname that matches "camelcase" case insensitively. It didn't check if the added contents actually was the updated one. Mark the test as non-working. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t0050-filesystem.sh')
-rwxr-xr-xt/t0050-filesystem.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/t/t0050-filesystem.sh b/t/t0050-filesystem.sh
index 89282ccf7a..41df6bcf27 100755
--- a/t/t0050-filesystem.sh
+++ b/t/t0050-filesystem.sh
@@ -108,13 +108,17 @@ $test_case 'merge (case change)' '
'
-$test_case 'add (with different case)' '
+
+
+test_expect_failure 'add (with different case)' '
git reset --hard initial &&
rm camelcase &&
echo 1 >CamelCase &&
git add CamelCase &&
- test $(git ls-files | grep -i camelcase | wc -l) = 1
+ camel=$(git ls-files | grep -i camelcase) &&
+ test $(echo "$camel" | wc -l) = 1 &&
+ test "z$(git cat-file blob :$camel)" = z1
'