[libsoup/carlosgc/client-side-certs2: 16/17] ssl-test: Skip test case on older glib-networking




commit 11fbfe86004b511c38b04476f3e67ad888afd893
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 1202b921..47d32e26 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]