Skip to content

Commit 0d7c243

Browse files
committed
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 <[email protected]>
1 parent 48ffef9 commit 0d7c243

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

t/t0050-filesystem.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,17 @@ $test_case 'merge (case change)' '
108108
109109
'
110110

111-
$test_case 'add (with different case)' '
111+
112+
113+
test_expect_failure 'add (with different case)' '
112114
113115
git reset --hard initial &&
114116
rm camelcase &&
115117
echo 1 >CamelCase &&
116118
git add CamelCase &&
117-
test $(git ls-files | grep -i camelcase | wc -l) = 1
119+
camel=$(git ls-files | grep -i camelcase) &&
120+
test $(echo "$camel" | wc -l) = 1 &&
121+
test "z$(git cat-file blob :$camel)" = z1
118122
119123
'
120124

0 commit comments

Comments
 (0)