aboutsummaryrefslogtreecommitdiffstats
path: root/lib/wx/test/wx_class_SUITE.erl
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2015-06-30 12:53:02 +0200
committerDan Gudmundsson <[email protected]>2015-06-30 12:53:02 +0200
commit4246d988b53947c7a7f0ce4943a83af38d129435 (patch)
treef6e2859c8e9d0e55e5ae76f7c460cca2c0c1972a /lib/wx/test/wx_class_SUITE.erl
parent46285b9f6f9cbe102e22aaf6157e436797404f00 (diff)
downloadotp-4246d988b53947c7a7f0ce4943a83af38d129435.tar.gz
otp-4246d988b53947c7a7f0ce4943a83af38d129435.tar.bz2
otp-4246d988b53947c7a7f0ce4943a83af38d129435.zip
wx: Send wxWdigets assert to error logger
Instead of popping up an annoying msgbox
Diffstat (limited to 'lib/wx/test/wx_class_SUITE.erl')
-rw-r--r--lib/wx/test/wx_class_SUITE.erl6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/wx/test/wx_class_SUITE.erl b/lib/wx/test/wx_class_SUITE.erl
index fd6023a820..ebae32aeb8 100644
--- a/lib/wx/test/wx_class_SUITE.erl
+++ b/lib/wx/test/wx_class_SUITE.erl
@@ -386,13 +386,17 @@ listCtrlSort(Config) ->
io:format("Sorted ~p ~n",[Time]),
Item = wxListItem:new(),
+
+ %% Force an assert on (and debug compiled) which 3.0 is by default
+ wxListItem:setId(Item, 200),
+ io:format("Got ~p ~n", [wxListCtrl:getItem(LC, Item)]),
+
wxListItem:setMask(Item, ?wxLIST_MASK_TEXT),
_List = wx:map(fun(Int) ->
wxListItem:setId(Item, Int),
?m(true, wxListCtrl:getItem(LC, Item)),
io:format("~p: ~s~n",[Int, wxListItem:getText(Item)])
end, lists:seq(0,10)),
- wxListItem:destroy(Item),
wx_test_lib:wx_destroy(Frame,Config).