[libsoup/carlosgc/client-side-certs2] ssl-test: Skip test case on older glib-networking
- From: Patrick Griffis <pgriffis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup/carlosgc/client-side-certs2] ssl-test: Skip test case on older glib-networking
- Date: Sun, 30 May 2021 17:25:02 +0000 (UTC)
commit 440be7da11b66ed21c3b07325c306978382a9a0a
Author: Patrick Griffis <pgriffis igalia com>
Date: Sun May 30 12:24:46 2021 -0500
ssl-test: Skip test case on older glib-networking
tests/ssl-test.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/tests/ssl-test.c b/tests/ssl-test.c
index 351e5608..268e2896 100644
--- a/tests/ssl-test.c
+++ b/tests/ssl-test.c
@@ -429,6 +429,8 @@ do_tls_interaction_msg_test (gconstpointer data)
g_bytes_unref (body);
g_object_unref (msg);
+#if GLIB_CHECK_VERSION (2, 69, 1)
+ /* glib-networking issue fixed by
https://gitlab.gnome.org/GNOME/glib-networking/-/commit/362fb43a5a4816f0706569ac57e645f20eac34ca */
/* It should safely fail when the PIN is unhandled */
msg = soup_message_new_from_uri ("GET", uri);
soup_message_add_flags (msg, SOUP_MESSAGE_NEW_CONNECTION);
@@ -436,14 +438,11 @@ do_tls_interaction_msg_test (gconstpointer data)
G_CALLBACK (request_certificate_cb),
pkcs11_certificate);
body = soup_test_session_async_send (session, msg, NULL, &error);
-#if GLIB_CHECK_VERSION (2, 69, 0)
g_assert_error (error, G_TLS_ERROR, G_TLS_ERROR_CERTIFICATE_REQUIRED);
-#else
- g_assert_error (error, G_IO_ERROR, G_IO_ERROR_CONNECTION_REFUSED);
-#endif
g_clear_error (&error);
g_bytes_unref (body);
g_object_unref (msg);
+#endif
/* Handling the request-certificate-password signal asynchronously */
msg = soup_message_new_from_uri ("GET", uri);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]