aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaimo Niskanen <[email protected]>2011-12-16 16:59:21 +0100
committerRaimo Niskanen <[email protected]>2011-12-20 14:39:57 +0100
commit5c41307acc50055f622a19121b93c3c7c676db2a (patch)
tree102eb9da10bee106c043e6c89c1c3dd8092768d1
parent4a46e6223c46b86a8c84f630753d4d007e354fea (diff)
downloadotp-5c41307acc50055f622a19121b93c3c7c676db2a.tar.gz
otp-5c41307acc50055f622a19121b93c3c7c676db2a.tar.bz2
otp-5c41307acc50055f622a19121b93c3c7c676db2a.zip
file_SITE,prim_file_SUITE: Accept old OpenBSD pecularity
-rw-r--r--lib/kernel/test/file_SUITE.erl1
-rw-r--r--lib/kernel/test/prim_file_SUITE.erl1
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/kernel/test/file_SUITE.erl b/lib/kernel/test/file_SUITE.erl
index 0a4d5a31d2..5a01c4a654 100644
--- a/lib/kernel/test/file_SUITE.erl
+++ b/lib/kernel/test/file_SUITE.erl
@@ -396,6 +396,7 @@ make_del_dir(Config) when is_list(Config) ->
%% Don't worry ;-) the parent directory should never be empty, right?
?line case ?FILE_MODULE:del_dir('..') of
{error, eexist} -> ok;
+ {error, eacces} -> ok; %OpenBSD
{error, einval} -> ok %FreeBSD
end,
?line {error, enoent} = ?FILE_MODULE:del_dir(""),
diff --git a/lib/kernel/test/prim_file_SUITE.erl b/lib/kernel/test/prim_file_SUITE.erl
index ceed33515c..831eadb04a 100644
--- a/lib/kernel/test/prim_file_SUITE.erl
+++ b/lib/kernel/test/prim_file_SUITE.erl
@@ -294,6 +294,7 @@ make_del_dir(Config, Handle, Suffix) ->
%% Don't worry ;-) the parent directory should never be empty, right?
?line case ?PRIM_FILE_call(del_dir, Handle, [".."]) of
{error, eexist} -> ok;
+ {error, eacces} -> ok; %OpenBSD
{error, einval} -> ok %FreeBSD
end,
?line {error, enoent} = ?PRIM_FILE_call(del_dir, Handle, [""]),