diff options
author | Dan Gudmundsson <[email protected]> | 2016-06-02 16:15:08 +0200 |
---|---|---|
committer | Dan Gudmundsson <[email protected]> | 2016-06-03 10:36:46 +0200 |
commit | 06fc37fdb5154af145480154e247637bf3ed427d (patch) | |
tree | 2733f063315697b374ab45536051954ce09d78da /lib/wx/test/wx_basic_SUITE.erl | |
parent | 77b6b9a3c5d044a832ba36f8683bbe88279d8c88 (diff) | |
download | otp-06fc37fdb5154af145480154e247637bf3ed427d.tar.gz otp-06fc37fdb5154af145480154e247637bf3ed427d.tar.bz2 otp-06fc37fdb5154af145480154e247637bf3ed427d.zip |
wx: Change async error handling
Previously error from async functions made an exit when the next
sync call checked the message queue. This have been changed to an
error report instead since the errors where async there where really
hard to handle.
Also changed the error report format to make it easier to filter
them with a custom error_handler.
Diffstat (limited to 'lib/wx/test/wx_basic_SUITE.erl')
-rw-r--r-- | lib/wx/test/wx_basic_SUITE.erl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/wx/test/wx_basic_SUITE.erl b/lib/wx/test/wx_basic_SUITE.erl index f89f25274a..6a2528780e 100644 --- a/lib/wx/test/wx_basic_SUITE.erl +++ b/lib/wx/test/wx_basic_SUITE.erl @@ -192,7 +192,9 @@ wx_api(Config) -> ?m(ok,wxButton:setLabel(Temp, "Testing")), ?m(ok,wxButton:destroy(Temp)), ?m({'EXIT',_},wxButton:getLabel(Temp)), - + ?m(ok,wxButton:setLabel(Temp, "Testing")), %% Should generate an error report + ?m({'EXIT',_},wxButton:getLabel(Temp)), + case wx_test_lib:user_available(Config) of true -> %% Hmm popup doesn't return until mouse is pressed. |