[glib-networking/enable-openssl-tests] openssl: try to fix unit test when getting an error from an interaction



commit a8a982e7aa4d47b1e73e4668b7fdb852921033a5
Author: Ignacio Casal Quinteiro <qignacio amazon com>
Date:   Fri May 17 16:12:33 2019 +0200

    openssl: try to fix unit test when getting an error from an interaction

 tls/tests/connection.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/tls/tests/connection.c b/tls/tests/connection.c
index 6397115..4e22ad9 100644
--- a/tls/tests/connection.c
+++ b/tls/tests/connection.c
@@ -1259,7 +1259,7 @@ test_client_auth_request_fail (TestConnection *test,
   g_main_loop_run (test->loop);
   wait_until_server_finished (test);
 
-#if OPENSSL_VERSION_NUMBER < 0x10101000L || defined (LIBRESSL_VERSION_NUMBER)
+#if BACKEND_IS_OPENSSL
   /* FIXME: G_FILE_ERROR_ACCES is not a very great error to get here. */
   g_assert_error (test->read_error, G_FILE_ERROR, G_FILE_ERROR_ACCES);
 #else


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]