[libsoup] tests: fix build warning



commit 0aa9065e2b4f54b344af418ce0b4e25b68ad3e6e
Author: Carlos Garcia Campos <cgarcia igalia com>
Date:   Thu Dec 10 11:04:34 2020 +0100

    tests: fix build warning
    
    Check soup_session_send() returns null in case of error.

 tests/no-ssl-test.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/tests/no-ssl-test.c b/tests/no-ssl-test.c
index cd3cc995..d17aa2df 100644
--- a/tests/no-ssl-test.c
+++ b/tests/no-ssl-test.c
@@ -9,7 +9,7 @@ do_ssl_test_for_session (SoupSession *session, GUri *uri)
        GError *error;
 
        msg = soup_message_new_from_uri ("GET", uri);
-       soup_session_send (session, msg, NULL, &error);
+       g_assert_null (soup_session_send (session, msg, NULL, &error));
        g_assert_error (error, G_TLS_ERROR, G_TLS_ERROR_UNAVAILABLE);
        g_assert_cmpuint (soup_message_get_status (msg), ==, SOUP_STATUS_NONE);
        g_assert_null (soup_message_get_tls_certificate (msg));


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