aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2018-06-11 14:58:03 +0200
committerSiri Hansen <[email protected]>2018-06-12 14:07:56 +0200
commit42f0d79cf02b4d74508bd4fdeac95574ae811949 (patch)
tree57e9d2ac6c4d8a7e068f32fc8bbfc20c4f15a54a
parent4e429c8ec783947b84ef7e8e337e3af0cd5603ed (diff)
downloadotp-42f0d79cf02b4d74508bd4fdeac95574ae811949.tar.gz
otp-42f0d79cf02b4d74508bd4fdeac95574ae811949.tar.bz2
otp-42f0d79cf02b4d74508bd4fdeac95574ae811949.zip
[logger] Skip test involving file access rights on windows
-rw-r--r--lib/kernel/test/logger_std_h_SUITE.erl16
1 files changed, 11 insertions, 5 deletions
diff --git a/lib/kernel/test/logger_std_h_SUITE.erl b/lib/kernel/test/logger_std_h_SUITE.erl
index 27a8db1db6..27b1cfc5ea 100644
--- a/lib/kernel/test/logger_std_h_SUITE.erl
+++ b/lib/kernel/test/logger_std_h_SUITE.erl
@@ -226,11 +226,17 @@ errors(Config) ->
logger:add_handler(?MODULE,logger_std_h,
#{config => #{type => faulty_type}}),
- NoDir = lists:concat(["/",?MODULE,"_dir"]),
- {error,
- {handler_not_added,{{open_failed,NoDir,eacces},_}}} =
- logger:add_handler(myh2,logger_std_h,
- #{config=>#{type=>{file,NoDir}}}),
+ case os:type() of
+ {win32,_} ->
+ %% No use in testing file access on windows
+ ok;
+ _ ->
+ NoDir = lists:concat(["/",?MODULE,"_dir"]),
+ {error,
+ {handler_not_added,{{open_failed,NoDir,eacces},_}}} =
+ logger:add_handler(myh2,logger_std_h,
+ #{config=>#{type=>{file,NoDir}}})
+ end,
{error,
{handler_not_added,{{open_failed,Log,_},_}}} =