Commit 11fbfe86 authored by Patrick Griffis's avatar Patrick Griffis Committed by Carlos Garcia Campos
Browse files

ssl-test: Skip test case on older glib-networking

parent 283d1e91
...@@ -429,6 +429,8 @@ do_tls_interaction_msg_test (gconstpointer data) ...@@ -429,6 +429,8 @@ do_tls_interaction_msg_test (gconstpointer data)
g_bytes_unref (body); g_bytes_unref (body);
g_object_unref (msg); 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 */ /* It should safely fail when the PIN is unhandled */
msg = soup_message_new_from_uri ("GET", uri); msg = soup_message_new_from_uri ("GET", uri);
soup_message_add_flags (msg, SOUP_MESSAGE_NEW_CONNECTION); soup_message_add_flags (msg, SOUP_MESSAGE_NEW_CONNECTION);
...@@ -436,14 +438,11 @@ do_tls_interaction_msg_test (gconstpointer data) ...@@ -436,14 +438,11 @@ do_tls_interaction_msg_test (gconstpointer data)
G_CALLBACK (request_certificate_cb), G_CALLBACK (request_certificate_cb),
pkcs11_certificate); pkcs11_certificate);
body = soup_test_session_async_send (session, msg, NULL, &error); 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); 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_clear_error (&error);
g_bytes_unref (body); g_bytes_unref (body);
g_object_unref (msg); g_object_unref (msg);
#endif
/* Handling the request-certificate-password signal asynchronously */ /* Handling the request-certificate-password signal asynchronously */
msg = soup_message_new_from_uri ("GET", uri); msg = soup_message_new_from_uri ("GET", uri);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment