mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-23 20:46:14 +01:00
tests: Fix non-TAP output from socket test
This was breaking strict TAP parsers, such as Meson’s. Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
parent
8dde15a5b3
commit
75a39114d8
@ -2052,14 +2052,14 @@ test_credentials_tcp_client (void)
|
||||
if (creds != NULL)
|
||||
{
|
||||
gchar *str = g_credentials_to_string (creds);
|
||||
g_print ("Supported on this OS: %s\n", str);
|
||||
g_test_message ("Supported on this OS: %s", str);
|
||||
g_free (str);
|
||||
g_clear_object (&creds);
|
||||
}
|
||||
else
|
||||
{
|
||||
g_assert_error (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED);
|
||||
g_print ("Unsupported on this OS: %s\n", error->message);
|
||||
g_test_message ("Unsupported on this OS: %s", error->message);
|
||||
g_clear_error (&error);
|
||||
}
|
||||
|
||||
@ -2118,14 +2118,14 @@ test_credentials_tcp_server (void)
|
||||
if (creds != NULL)
|
||||
{
|
||||
gchar *str = g_credentials_to_string (creds);
|
||||
g_print ("Supported on this OS: %s\n", str);
|
||||
g_test_message ("Supported on this OS: %s", str);
|
||||
g_free (str);
|
||||
g_clear_object (&creds);
|
||||
}
|
||||
else
|
||||
{
|
||||
g_assert_error (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED);
|
||||
g_print ("Unsupported on this OS: %s\n", error->message);
|
||||
g_test_message ("Unsupported on this OS: %s", error->message);
|
||||
g_clear_error (&error);
|
||||
}
|
||||
|
||||
@ -2321,14 +2321,14 @@ test_credentials_unix_socketpair (void)
|
||||
if (creds != NULL)
|
||||
{
|
||||
gchar *str = g_credentials_to_string (creds);
|
||||
g_print ("Supported on this OS: %s\n", str);
|
||||
g_test_message ("Supported on this OS: %s", str);
|
||||
g_free (str);
|
||||
g_clear_object (&creds);
|
||||
}
|
||||
else
|
||||
{
|
||||
g_assert_error (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED);
|
||||
g_print ("Unsupported on this OS: %s\n", error->message);
|
||||
g_test_message ("Unsupported on this OS: %s", error->message);
|
||||
g_clear_error (&error);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user