aboutsummaryrefslogtreecommitdiffstats
path: root/lib/wx/test/wx_event_SUITE.erl
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2014-06-11 14:29:19 +0200
committerSiri Hansen <[email protected]>2014-06-11 14:29:19 +0200
commitda42410cb15c0749ea6cf9b6196b81320d8391b6 (patch)
tree829f5cdb59cf92cdaf381564fe51885644494650 /lib/wx/test/wx_event_SUITE.erl
parent5f2b70f205bc64be545b75db5419111aac11291d (diff)
parent154a057dcbf087deb38b13e97f0a0373e6a72f1d (diff)
downloadotp-da42410cb15c0749ea6cf9b6196b81320d8391b6.tar.gz
otp-da42410cb15c0749ea6cf9b6196b81320d8391b6.tar.bz2
otp-da42410cb15c0749ea6cf9b6196b81320d8391b6.zip
Merge branch 'siri/sync-stop-gen/OTP-11173'
* siri/sync-stop-gen/OTP-11173: Add synchronous stop function to wx_object Fix minor bugs in gen_server and gen_fsm documentation Update gen_event:stop to be synchronous Add synchronous stop functions to gen_server and gen_fsm Add synchronous stop function to proc_lib Add system message 'terminate' Remove old code from stdlib/test/sys_sp2.erl
Diffstat (limited to 'lib/wx/test/wx_event_SUITE.erl')
-rw-r--r--lib/wx/test/wx_event_SUITE.erl7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/wx/test/wx_event_SUITE.erl b/lib/wx/test/wx_event_SUITE.erl
index 076f16ba16..2c6c59bb55 100644
--- a/lib/wx/test/wx_event_SUITE.erl
+++ b/lib/wx/test/wx_event_SUITE.erl
@@ -542,13 +542,14 @@ handler_clean(_Config) ->
?mt(wxFrame, Frame1),
wxWindow:show(Frame1),
?m([_|_], lists:sort(wx_test_lib:flush())),
- ?m({stop,_}, wx_obj_test:stop(Frame1, fun(_) -> normal end)),
+ ?m(ok, wx_obj_test:stop(Frame1)),
?m([{terminate,normal}], lists:sort(wx_test_lib:flush())),
- Frame2 = wx_obj_test:start([{init, Init}]),
+ Terminate = fun({Frame,_}) -> wxWindow:destroy(Frame) end,
+ Frame2 = wx_obj_test:start([{init, Init}, {terminate, Terminate}]),
wxWindow:show(Frame2),
?m([_|_], lists:sort(wx_test_lib:flush())),
- ?m({stop,_}, wx_obj_test:stop(Frame2, fun(_) -> wxWindow:destroy(Frame2), normal end)),
+ ?m(ok, wx_obj_test:stop(Frame2)),
?m([{terminate,normal}], lists:sort(wx_test_lib:flush())),
timer:sleep(104),
?m({[],[],[]}, white_box_check_event_handlers()),