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'
7
7
auml=$( printf ' \303\244' )
8
8
aumlcdiar=$( printf ' \141\314\210' )
9
9
10
- case_insensitive=
11
10
unibad=
12
11
no_symlinks=
13
12
test_expect_success ' see what we expect' '
14
13
15
- test_case=test_expect_success &&
16
14
test_unicode=test_expect_success &&
17
15
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 &&
27
16
>junk/"$auml" &&
28
17
case "$(cd junk && echo *)" in
29
18
"$aumlcdiar")
@@ -41,14 +30,20 @@ test_expect_success 'see what we expect' '
41
30
}
42
31
'
43
32
44
- test " $case_insensitive " &&
33
+ if test_have_prereq CASE_INSENSITIVE_FS
34
+ then
45
35
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
+
46
41
test " $unibad " &&
47
42
say " will test on a unicode corrupting filesystem"
48
43
test " $no_symlinks " &&
49
44
say " will test on a filesystem lacking symbolic links"
50
45
51
- if test " $case_insensitive "
46
+ if test_have_prereq CASE_INSENSITIVE_FS
52
47
then
53
48
test_expect_success " detection of case insensitive filesystem during repo init" '
54
49
You can’t perform that action at this time.
0 commit comments