Skip to content

Commit

Permalink
t0050: mark non-working test as such
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Junio C Hamano committed Mar 14, 2010
1 parent 48ffef9 commit 0d7c243
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions t/t0050-filesystem.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
'

Expand Down

0 comments on commit 0d7c243

Please sign in to comment.