diff options
author | Raimo Niskanen <[email protected]> | 2016-02-26 10:35:16 +0100 |
---|---|---|
committer | Raimo Niskanen <[email protected]> | 2016-02-26 10:35:16 +0100 |
commit | 1e4831762b5ab4bd2210fc9e0a204e00dfe81b39 (patch) | |
tree | 48e065aa786f1256c3fd1662fcad60ae991aebab /lib/stdlib/test | |
parent | cea77ca09be156669c657592bebf6efc9d5cfaee (diff) | |
download | otp-1e4831762b5ab4bd2210fc9e0a204e00dfe81b39.tar.gz otp-1e4831762b5ab4bd2210fc9e0a204e00dfe81b39.tar.bz2 otp-1e4831762b5ab4bd2210fc9e0a204e00dfe81b39.zip |
Implement 'keep_state_and_data' and 'stop'
Diffstat (limited to 'lib/stdlib/test')
-rw-r--r-- | lib/stdlib/test/gen_statem_SUITE.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/stdlib/test/gen_statem_SUITE.erl b/lib/stdlib/test/gen_statem_SUITE.erl index f5cbdd9a40..09b309c36f 100644 --- a/lib/stdlib/test/gen_statem_SUITE.erl +++ b/lib/stdlib/test/gen_statem_SUITE.erl @@ -1233,7 +1233,7 @@ wfor_conf(Type, Content, Data) -> {next_state,idle,Data, [{reply,From,'eh?'}]}; _ -> - throw({keep_state_and_data,[]}) + throw(keep_state_and_data) end; Result -> Result @@ -1334,7 +1334,7 @@ handle_common_events(cast, {get,Pid}, State, Data) -> handle_common_events({call,From}, stop, _, Data) -> {stop_and_reply,normal,[{reply,From,stopped}],Data}; handle_common_events(cast, stop, _, _) -> - {stop,normal}; + stop; handle_common_events({call,From}, {stop,Reason}, _, Data) -> {stop_and_reply,Reason,{reply,From,stopped},Data}; handle_common_events(cast, {stop,Reason}, _, _) -> |