aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel
diff options
context:
space:
mode:
authorJohn Högberg <[email protected]>2019-03-25 14:07:37 +0100
committerJohn Högberg <[email protected]>2019-03-29 12:51:54 +0100
commit261f171079f98c7037309fcb7b2967e9fb79cfe5 (patch)
tree60dd8785a8b572dd863b4b1c7c3e50e518d97e89 /lib/kernel
parentf26340035f0bded68c9eefbd3a534d8a5f428e36 (diff)
downloadotp-261f171079f98c7037309fcb7b2967e9fb79cfe5.tar.gz
otp-261f171079f98c7037309fcb7b2967e9fb79cfe5.tar.bz2
otp-261f171079f98c7037309fcb7b2967e9fb79cfe5.zip
file_name_SUITE: Darwin 18 broke support for 'icky' names
Diffstat (limited to 'lib/kernel')
-rw-r--r--lib/kernel/test/file_name_SUITE.erl11
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/kernel/test/file_name_SUITE.erl b/lib/kernel/test/file_name_SUITE.erl
index 3afc647081..26cfd187c7 100644
--- a/lib/kernel/test/file_name_SUITE.erl
+++ b/lib/kernel/test/file_name_SUITE.erl
@@ -632,10 +632,13 @@ make_icky_dir(Mod, IckyDirName) ->
hopeless_darwin() ->
case {os:type(),os:version()} of
- {{unix,darwin},{Major,_,_}} when Major < 9 ->
- true;
- _ ->
- false
+ {{unix,darwin},{Major,_,_}} ->
+ %% icky file names worked between 10 and 17, but started returning
+ %% EILSEQ in 18. The check against 18 is exact in case newer
+ %% versions of Darwin support them again.
+ Major < 9 orelse Major =:= 18;
+ _ ->
+ false
end.
make_very_icky_dir(Mod, DirName) ->