You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by jd...@apache.org on 2020/04/08 07:27:12 UTC
[qpid-proton] branch jd_2020_04_cpp_throw_PROTON-1675 created (now
0e94fac)
This is an automated email from the ASF dual-hosted git repository.
jdanek pushed a change to branch jd_2020_04_cpp_throw_PROTON-1675
in repository https://gitbox.apache.org/repos/asf/qpid-proton.git.
at 0e94fac PROTON-1675 [cpp] Attempt to listen on invalid URL will not throw exception
This branch includes the following new commits:
new 0e94fac PROTON-1675 [cpp] Attempt to listen on invalid URL will not throw exception
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org
[qpid-proton] 01/01: PROTON-1675 [cpp] Attempt to listen on invalid
URL will not throw exception
Posted by jd...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
jdanek pushed a commit to branch jd_2020_04_cpp_throw_PROTON-1675
in repository https://gitbox.apache.org/repos/asf/qpid-proton.git
commit 0e94fac055f46202b17ed01192f8dab84519322c
Author: Jiri Danek <jd...@redhat.com>
AuthorDate: Wed Apr 8 09:26:45 2020 +0200
PROTON-1675 [cpp] Attempt to listen on invalid URL will not throw exception
---
cpp/src/container_test.cpp | 18 ++++++++++--------
1 file changed, 10 insertions(+), 8 deletions(-)
diff --git a/cpp/src/container_test.cpp b/cpp/src/container_test.cpp
index f48a676..02a8272 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;
}
@@ -472,11 +472,13 @@ void test_container_mt_close_race() {
int main(int argc, char** argv) {
int failed = 0;
- RUN_ARGV_TEST(failed, test_container_default_container_id());
- RUN_ARGV_TEST(failed, test_container_vhost());
- RUN_ARGV_TEST(failed, test_container_capabilities());
- RUN_ARGV_TEST(failed, test_container_default_vhost());
- RUN_ARGV_TEST(failed, test_container_no_vhost());
+ if (false) {
+ RUN_ARGV_TEST(failed, test_container_default_container_id());
+ RUN_ARGV_TEST(failed, test_container_vhost());
+ RUN_ARGV_TEST(failed, test_container_capabilities());
+ RUN_ARGV_TEST(failed, test_container_default_vhost());
+ RUN_ARGV_TEST(failed, test_container_no_vhost());
+ }
RUN_ARGV_TEST(failed, test_container_bad_address());
RUN_ARGV_TEST(failed, test_container_stop());
RUN_ARGV_TEST(failed, test_container_schedule_nohang());
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org