aboutsummaryrefslogtreecommitdiffstats
path: root/lib/wx
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2014-03-28 10:05:23 +0100
committerDan Gudmundsson <[email protected]>2014-03-28 10:05:23 +0100
commit95ffe7eb374f59ce3f289747212adf042c1cd703 (patch)
tree5752dddb7ff2d9eb4d914402b396f226c5c2d964 /lib/wx
parent5b9ffc724e7c3ffe7c775b5113de059e2e25f755 (diff)
parent4f63cca949982e88d958e33e2e278b18da4de4b3 (diff)
downloadotp-95ffe7eb374f59ce3f289747212adf042c1cd703.tar.gz
otp-95ffe7eb374f59ce3f289747212adf042c1cd703.tar.bz2
otp-95ffe7eb374f59ce3f289747212adf042c1cd703.zip
Merge branch 'dgud/testcasecuddling'
* dgud/testcasecuddling: os_mon: test tweaks kernel: tweak tests mnesia: test harder sync mnesia: Dialyzer fixes stdlib: loosen testcases wx: loosen testcase
Diffstat (limited to 'lib/wx')
-rw-r--r--lib/wx/test/wx_basic_SUITE.erl13
1 files changed, 6 insertions, 7 deletions
diff --git a/lib/wx/test/wx_basic_SUITE.erl b/lib/wx/test/wx_basic_SUITE.erl
index 7bdbd4594c..e3bbb21a23 100644
--- a/lib/wx/test/wx_basic_SUITE.erl
+++ b/lib/wx/test/wx_basic_SUITE.erl
@@ -341,23 +341,22 @@ wx_object(Config) ->
Me = self(),
?m({call, foobar, {Me, _}}, wx_object:call(Frame, foobar)),
?m(ok, wx_object:cast(Frame, foobar2)),
- ?m([{cast, foobar2}], flush()),
+ ?m([{cast, foobar2}|_], flush()),
FramePid = wx_object:get_pid(Frame),
io:format("wx_object pid ~p~n",[FramePid]),
FramePid ! foo3,
- ?m([{info, foo3}], flush()),
+ ?m([{info, foo3}|_], flush()),
?m(ok, wx_object:cast(Frame, fun(_) -> hehe end)),
- ?m([{cast, hehe}], flush()),
+ ?m([{cast, hehe}|_], flush()),
wxWindow:refresh(Frame),
- ?m([{sync_event, #wx{event=#wxPaint{}}, _}], flush()),
+ ?m([{sync_event, #wx{event=#wxPaint{}}, _}|_], flush()),
?m(ok, wx_object:cast(Frame, fun(_) -> timer:sleep(200), slept end)),
%% The sleep above should not hinder the Paint event below
%% Which it did in my buggy handling of the sync_callback
wxWindow:refresh(Frame),
- ?m([{sync_event, #wx{event=#wxPaint{}}, _}], flush()),
timer:sleep(500),
- ?m([{cast, slept}], flush()),
+ ?m([{sync_event, #wx{event=#wxPaint{}}, _}, {cast, slept}|_], flush()),
Monitor = erlang:monitor(process, FramePid),
case proplists:get_value(user, Config, false) of
@@ -397,7 +396,7 @@ check_events([], Async, Sync) ->
end.
flush() ->
- flush([], 500).
+ flush([], 1500).
flush(Acc, Wait) ->
receive