@@ -29,12 +29,10 @@ test_have_prereq SYMLINKS ||
2929if test_have_prereq CASE_INSENSITIVE_FS
3030then
3131test_expect_success " detection of case insensitive filesystem during repo init" '
32-
3332 test $(git config --bool core.ignorecase) = true
3433'
3534else
3635test_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'
4341if test_have_prereq SYMLINKS
4442then
4543test_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'
5047else
5148test_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'
5652fi
5753
5854test_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
10391test_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
133115test_done
0 commit comments