diff options
author | Erlang/OTP <[email protected]> | 2010-05-06 15:40:53 +0000 |
---|---|---|
committer | Erlang/OTP <[email protected]> | 2010-05-06 15:40:53 +0000 |
commit | 3a5f8f60dc803d2a9825253120d826a12b01f312 (patch) | |
tree | 969f427735fa18c5425758b0155173f8d9691d0c /lib/kernel/test/file_SUITE.erl | |
parent | 76a5a13c7a2cbbb6a204e99ab0a6f30528c190da (diff) | |
parent | 748ba3a9c58a5a12a1423fd0311d8c681e38169e (diff) | |
download | otp-3a5f8f60dc803d2a9825253120d826a12b01f312.tar.gz otp-3a5f8f60dc803d2a9825253120d826a12b01f312.tar.bz2 otp-3a5f8f60dc803d2a9825253120d826a12b01f312.zip |
Merge branch 'bg/file-del_dir' into dev
* bg/file-del_dir:
Adjust test of file:del_dir("..") to accept {error,einval}
Diffstat (limited to 'lib/kernel/test/file_SUITE.erl')
-rw-r--r-- | lib/kernel/test/file_SUITE.erl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/kernel/test/file_SUITE.erl b/lib/kernel/test/file_SUITE.erl index d01e1f1fcf..1d170790a3 100644 --- a/lib/kernel/test/file_SUITE.erl +++ b/lib/kernel/test/file_SUITE.erl @@ -270,7 +270,10 @@ make_del_dir(Config) when is_list(Config) -> %% Try deleting some bad directories %% Deleting the parent directory to the current, sounds dangerous, huh? %% Don't worry ;-) the parent directory should never be empty, right? - ?line {error, eexist} = ?FILE_MODULE:del_dir('..'), + case ?FILE_MODULE:del_dir('..') of + {error, eexist} -> ok; + {error, einval} -> ok %FreeBSD + end, ?line {error, enoent} = ?FILE_MODULE:del_dir(""), ?line {error, badarg} = ?FILE_MODULE:del_dir([3,2,1,{}]), |