[glibmm] tests/glibmm_tls_client: Skip test, if socket can't be connected
- From: Kjell Ahlstedt <kjellahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm] tests/glibmm_tls_client: Skip test, if socket can't be connected
- Date: Thu, 10 Dec 2020 09:32:14 +0000 (UTC)
commit b7ec92f0980f8913e7ef53b605070eb9ebe7bee4
Author: Kjell Ahlstedt <kjellahlstedt gmail com>
Date: Thu Dec 10 10:30:21 2020 +0100
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.
tests/giomm_tls_client/main.cc | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
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())
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]