File tree Expand file tree Collapse file tree 1 file changed +8
-13
lines changed
Expand file tree Collapse file tree 1 file changed +8
-13
lines changed Original file line number Diff line number Diff line change @@ -7,23 +7,12 @@ test_description='Various filesystem issues'
77auml=$( printf ' \303\244' )
88aumlcdiar=$( printf ' \141\314\210' )
99
10- case_insensitive=
1110unibad=
1211no_symlinks=
1312test_expect_success ' see what we expect' '
1413
15- test_case=test_expect_success &&
1614 test_unicode=test_expect_success &&
1715 mkdir junk &&
18- echo good >junk/CamelCase &&
19- echo bad >junk/camelcase &&
20- if test "$(cat junk/CamelCase)" != good
21- then
22- test_case=test_expect_failure &&
23- case_insensitive=t
24- fi &&
25- rm -fr junk &&
26- mkdir junk &&
2716 >junk/"$auml" &&
2817 case "$(cd junk && echo *)" in
2918 "$aumlcdiar")
@@ -41,14 +30,20 @@ test_expect_success 'see what we expect' '
4130 }
4231'
4332
44- test " $case_insensitive " &&
33+ if test_have_prereq CASE_INSENSITIVE_FS
34+ then
4535 say " will test on a case insensitive filesystem"
36+ test_case=test_expect_failure
37+ else
38+ test_case=test_expect_success
39+ fi
40+
4641test " $unibad " &&
4742 say " will test on a unicode corrupting filesystem"
4843test " $no_symlinks " &&
4944 say " will test on a filesystem lacking symbolic links"
5045
51- if test " $case_insensitive "
46+ if test_have_prereq CASE_INSENSITIVE_FS
5247then
5348test_expect_success " detection of case insensitive filesystem during repo init" '
5449
You can’t perform that action at this time.
0 commit comments