diff options
author | Péter Dimitrov <[email protected]> | 2018-08-28 15:36:36 +0200 |
---|---|---|
committer | Péter Dimitrov <[email protected]> | 2018-08-28 15:36:36 +0200 |
commit | 547b4ec00465a9fb8be40772b6bcc3609d92a0d1 (patch) | |
tree | 518fdd418fa5577bb5c9e306bfb420fb674dff92 /lib/stdlib/test | |
parent | ef6995cf398870ecaafef972282795a6a7d48e58 (diff) | |
parent | f2fac67bc61407017acc3d8db3b36c3e08804394 (diff) | |
download | otp-547b4ec00465a9fb8be40772b6bcc3609d92a0d1.tar.gz otp-547b4ec00465a9fb8be40772b6bcc3609d92a0d1.tar.bz2 otp-547b4ec00465a9fb8be40772b6bcc3609d92a0d1.zip |
Merge branch 'maint'
* maint:
Updated OTP version
Update release notes
stdlib: Let dets:open_file() crash when given raw file name
Fix kernel_app doc logger_level default from info to notice
Change-Id: I581946ac5cec6574ed79017e2987039c1fdcf80a
Diffstat (limited to 'lib/stdlib/test')
-rw-r--r-- | lib/stdlib/test/dets_SUITE.erl | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/stdlib/test/dets_SUITE.erl b/lib/stdlib/test/dets_SUITE.erl index fe324391af..65977a764a 100644 --- a/lib/stdlib/test/dets_SUITE.erl +++ b/lib/stdlib/test/dets_SUITE.erl @@ -3417,6 +3417,7 @@ otp_11709(Config) when is_list(Config) -> ok. %% OTP-13229. open_file() exits with badarg when given binary file name. +%% Also OTP-15253. otp_13229(_Config) -> F = <<"binfile.tab">>, try dets:open_file(name, [{file, F}]) of @@ -3425,6 +3426,20 @@ otp_13229(_Config) -> catch error:badarg -> ok + end, + try dets:open_file(F, []) of % OTP-15253 + R2 -> + exit({open_succeeded, R2}) + catch + error:badarg -> + ok + end, + try dets:open_file(F) of + R3 -> + exit({open_succeeded, R3}) + catch + error:badarg -> + ok end. %% OTP-13260. Race when opening a table. |