Skip to content

Commit e1b6ff4

Browse files
committed
Merge branch 'tb/t0050-maint' into maint
Update tests that were expecting to fail due to a bug that was fixed earlier. * tb/t0050-maint: t0050: Use TAB for indentation t0050: honor CASE_INSENSITIVE_FS in add (with different case) t0050: known breakage vanished in merge (case change)
2 parents 025ea58 + 336e2e2 commit e1b6ff4

File tree

1 file changed

+17
-35
lines changed

1 file changed

+17
-35
lines changed

t/t0050-filesystem.sh

+17-35
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,10 @@ test_have_prereq SYMLINKS ||
2929
if test_have_prereq CASE_INSENSITIVE_FS
3030
then
3131
test_expect_success "detection of case insensitive filesystem during repo init" '
32-
3332
test $(git config --bool core.ignorecase) = true
3433
'
3534
else
3635
test_expect_success "detection of case insensitive filesystem during repo init" '
37-
3836
test_must_fail git config --bool core.ignorecase >/dev/null ||
3937
test $(git config --bool core.ignorecase) = false
4038
'
@@ -43,20 +41,17 @@ fi
4341
if test_have_prereq SYMLINKS
4442
then
4543
test_expect_success "detection of filesystem w/o symlink support during repo init" '
46-
4744
test_must_fail git config --bool core.symlinks ||
4845
test "$(git config --bool core.symlinks)" = true
4946
'
5047
else
5148
test_expect_success "detection of filesystem w/o symlink support during repo init" '
52-
5349
v=$(git config --bool core.symlinks) &&
5450
test "$v" = false
5551
'
5652
fi
5753

5854
test_expect_success "setup case tests" '
59-
6055
git config core.ignorecase true &&
6156
touch camelcase &&
6257
git add camelcase &&
@@ -67,67 +62,54 @@ test_expect_success "setup case tests" '
6762
git mv tmp CamelCase &&
6863
git commit -m "rename" &&
6964
git checkout -f master
70-
7165
'
7266

7367
$test_case 'rename (case change)' '
74-
7568
git mv camelcase CamelCase &&
7669
git commit -m "rename"
77-
7870
'
7971

80-
$test_case 'merge (case change)' '
81-
72+
test_expect_success 'merge (case change)' '
8273
rm -f CamelCase &&
8374
rm -f camelcase &&
8475
git reset --hard initial &&
8576
git merge topic
86-
8777
'
8878

8979

9080

91-
test_expect_failure 'add (with different case)' '
92-
81+
test_expect_failure CASE_INSENSITIVE_FS 'add (with different case)' '
9382
git reset --hard initial &&
9483
rm camelcase &&
9584
echo 1 >CamelCase &&
9685
git add CamelCase &&
9786
camel=$(git ls-files | grep -i camelcase) &&
9887
test $(echo "$camel" | wc -l) = 1 &&
9988
test "z$(git cat-file blob :$camel)" = z1
100-
10189
'
10290

10391
test_expect_success "setup unicode normalization tests" '
104-
105-
test_create_repo unicode &&
106-
cd unicode &&
107-
touch "$aumlcdiar" &&
108-
git add "$aumlcdiar" &&
109-
git commit -m initial &&
110-
git tag initial &&
111-
git checkout -b topic &&
112-
git mv $aumlcdiar tmp &&
113-
git mv tmp "$auml" &&
114-
git commit -m rename &&
115-
git checkout -f master
116-
92+
test_create_repo unicode &&
93+
cd unicode &&
94+
touch "$aumlcdiar" &&
95+
git add "$aumlcdiar" &&
96+
git commit -m initial &&
97+
git tag initial &&
98+
git checkout -b topic &&
99+
git mv $aumlcdiar tmp &&
100+
git mv tmp "$auml" &&
101+
git commit -m rename &&
102+
git checkout -f master
117103
'
118104

119105
$test_unicode 'rename (silent unicode normalization)' '
120-
121-
git mv "$aumlcdiar" "$auml" &&
122-
git commit -m rename
123-
106+
git mv "$aumlcdiar" "$auml" &&
107+
git commit -m rename
124108
'
125109

126110
$test_unicode 'merge (silent unicode normalization)' '
127-
128-
git reset --hard initial &&
129-
git merge topic
130-
111+
git reset --hard initial &&
112+
git merge topic
131113
'
132114

133115
test_done

0 commit comments

Comments
 (0)