This is an automated email from the ASF dual-hosted git repository. jdanek pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/qpid-proton.git
The following commit(s) were added to refs/heads/master by this push: new 0205a50 PROTON-1675 [cpp] Attempt to listen on invalid URL will not throw exception (#238) 0205a50 is described below commit 0205a5039d0208327631c1e767a639a0ee1e35a5 Author: Jiri Daněk <jda...@redhat.com> AuthorDate: Sat Apr 25 17:32:09 2020 +0000 PROTON-1675 [cpp] Attempt to listen on invalid URL will not throw exception (#238) --- cpp/src/container_test.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cpp/src/container_test.cpp b/cpp/src/container_test.cpp index f48a676..1866e6b 100644 --- a/cpp/src/container_test.cpp +++ b/cpp/src/container_test.cpp @@ -188,17 +188,17 @@ int test_container_bad_address() { proton::container c; // Default fixed-option listener. Valgrind for leaks. - try { c.listen("999.666.999.666:0"); } catch (const proton::error&) {} + c.listen("999.666.999.666:0"); c.run(); // Dummy listener. test_listen_handler l; test_handler h2("999.999.999.666", proton::connection_options()); - try { c.listen("999.666.999.666:0", l); } catch (const proton::error&) {} + c.listen("999.666.999.666:0", l); c.run(); ASSERT(!l.on_open_); ASSERT(!l.on_accept_); ASSERT(l.on_close_); - ASSERT(!l.on_error_.empty()); + ASSERT(!l.on_error_.empty()); // proton:io: Name or service not known return 0; } --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org For additional commands, e-mail: commits-h...@qpid.apache.org