diff options
author | Kjell Ahlstedt <kjellahlstedt@gmail.com> | 2020-12-10 10:30:21 +0100 |
---|---|---|
committer | Kjell Ahlstedt <kjellahlstedt@gmail.com> | 2020-12-10 10:30:21 +0100 |
commit | b7ec92f0980f8913e7ef53b605070eb9ebe7bee4 (patch) | |
tree | 816763c735a0ea913cb3f5d02de7afac5c1db741 /tests | |
parent | 52b492c927909d5517bcfc5b6fd8acda9d469f80 (diff) | |
download | glibmm-b7ec92f0980f8913e7ef53b605070eb9ebe7bee4.tar.gz |
tests/glibmm_tls_client: Skip test, if socket can't be connected
This test sometimes fails in CI runs, probably for a reason that's out
of glibmm's control.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/giomm_tls_client/main.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/giomm_tls_client/main.cc b/tests/giomm_tls_client/main.cc index 9ec2ea3c..bbbf56cf 100644 --- a/tests/giomm_tls_client/main.cc +++ b/tests/giomm_tls_client/main.cc @@ -101,7 +101,10 @@ main(int, char**) else std::cout << "Could not connect socket to " << address->get_address()->to_string() << ":" << address->get_port() << ". Exception: " << ex.what() << std::endl; - return EXIT_FAILURE; + + // When running CI (continuous integration), socket->connect(address) + // sometimes fails. Skip this test. + return 77; } if (!socket->is_connected()) |