diff options
author | Björn Gustavsson <[email protected]> | 2019-02-15 09:56:20 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2019-02-15 09:56:20 +0100 |
commit | b4466ab778ae2278e29625d4b8220af3797fa3b6 (patch) | |
tree | 5dbb32a022aa76d71971e42c25e4173d74e1c16d /erts/emulator/test | |
parent | 11d4a893e50b1738b01846a5e669addb3e5a4f75 (diff) | |
parent | 595c159823089d0186ec2617c174356d1ff2de65 (diff) | |
download | otp-b4466ab778ae2278e29625d4b8220af3797fa3b6.tar.gz otp-b4466ab778ae2278e29625d4b8220af3797fa3b6.tar.bz2 otp-b4466ab778ae2278e29625d4b8220af3797fa3b6.zip |
Merge branch 'maint'
* maint:
Add persistent_term:get(Key, DefaultValue)
Make dialyzer faster for left-associative andalso/orelse expressions
Diffstat (limited to 'erts/emulator/test')
-rw-r--r-- | erts/emulator/test/persistent_term_SUITE.erl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/erts/emulator/test/persistent_term_SUITE.erl b/erts/emulator/test/persistent_term_SUITE.erl index 58038e24b7..93eb026ced 100644 --- a/erts/emulator/test/persistent_term_SUITE.erl +++ b/erts/emulator/test/persistent_term_SUITE.erl @@ -6,7 +6,7 @@ %% Licensed under the Apache License, Version 2.0 (the "License"); %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at -%5 +%% %% http://www.apache.org/licenses/LICENSE-2.0 %% %% Unless required by applicable law or agreed to in writing, software @@ -60,7 +60,8 @@ basic(_Config) -> Key = {?MODULE,{key,I}}, true = persistent_term:erase(Key), false = persistent_term:erase(Key), - {'EXIT',{badarg,_}} = (catch persistent_term:get(Key)) + {'EXIT',{badarg,_}} = (catch persistent_term:get(Key)), + {not_present,Key} = persistent_term:get(Key, {not_present,Key}) end || I <- Seq], [] = [P || {{?MODULE,_},_}=P <- pget(Chk)], chk(Chk). |