aboutsummaryrefslogtreecommitdiffstats
path: root/lib/wx/test/wx_event_SUITE.erl
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2014-12-19 09:58:42 +0100
committerDan Gudmundsson <[email protected]>2014-12-19 09:58:42 +0100
commitddbe8a821ad57bfc2a1bcd29ed80ae8cfffe1c0e (patch)
treec396eed1aa1a5c3e5fb6c2a7474e366e0f246eb5 /lib/wx/test/wx_event_SUITE.erl
parent7cf95c33a50a705c38226bccd0caa76a96f92ea5 (diff)
downloadotp-ddbe8a821ad57bfc2a1bcd29ed80ae8cfffe1c0e.tar.gz
otp-ddbe8a821ad57bfc2a1bcd29ed80ae8cfffe1c0e.tar.bz2
otp-ddbe8a821ad57bfc2a1bcd29ed80ae8cfffe1c0e.zip
wx: Do not crash server when going down
If a connect request was made during the takedown of wx it would crash.
Diffstat (limited to 'lib/wx/test/wx_event_SUITE.erl')
-rw-r--r--lib/wx/test/wx_event_SUITE.erl8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/wx/test/wx_event_SUITE.erl b/lib/wx/test/wx_event_SUITE.erl
index 076f16ba16..f9f8788d8f 100644
--- a/lib/wx/test/wx_event_SUITE.erl
+++ b/lib/wx/test/wx_event_SUITE.erl
@@ -336,12 +336,14 @@ connect_in_callback(Config) ->
end}]),
wxWindow:show(F1),
receive
- {continue, F1} -> Tester ! {continue, F1}
+ {continue, F1} ->
+ true = wxFrame:disconnect(F1, size),
+ Tester ! {continue, F1}
end
end,
- wxFrame:connect(Frame,size,
+ wxFrame:connect(Frame,show,
[{callback,
- fun(#wx{event=#wxSize{}},_SizeEv) ->
+ fun(#wx{event=#wxShow{}},_SizeEv) ->
io:format("Frame got size~n",[]),
spawn(TestWindow)
end}]),