Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:24
erlang
4772-Fix-filelib_SUITE-ensure_path_invalid_path...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 4772-Fix-filelib_SUITE-ensure_path_invalid_path-1.patch of Package erlang
From a1717af197bc01663d85e9eecef41f4bcea77248 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Gustavsson?= <bjorn@erlang.org> Date: Thu, 20 Oct 2022 08:53:16 +0200 Subject: [PATCH 1/4] Fix filelib_SUITE:ensure_path_invalid_path/1 --- lib/stdlib/test/filelib_SUITE.erl | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/lib/stdlib/test/filelib_SUITE.erl b/lib/stdlib/test/filelib_SUITE.erl index eac0dea4d8..179567f128 100644 --- a/lib/stdlib/test/filelib_SUITE.erl +++ b/lib/stdlib/test/filelib_SUITE.erl @@ -493,7 +493,16 @@ ensure_path_invalid_path(Config) when is_list(Config) -> FileName = filename:join(BaseDir, "foo"), ok = file:write_file(FileName, <<"eh?\n">>), Path = filename:join(FileName, "foo/bar/baz"), - {error,enotdir} = filelib:ensure_path(Path), + case filelib:ensure_path(Path) of + {error,enotdir} -> + ok; + {error,enoent} -> + %% The documentation has the following to say about the + %% `enotdir` error reason: + %% + %% "On some platforms, enoent is returned instead." + ok + end, false = filelib:is_dir(Path). ensure_path_relative_path(Config) when is_list(Config) -> -- 2.35.3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor