mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 07:23:41 +02:00
gio/tests/socket: fix one of the new tests
One of the recently-added tests was using g_test_cmpstr() on a buffer containing a string that wasn't necessarily 0-terminated.
This commit is contained in:
@@ -491,6 +491,7 @@ test_ip_sync (GSocketFamily family)
|
||||
g_assert_no_error (error);
|
||||
g_assert_cmpint (len, ==, strlen (testbuf2));
|
||||
|
||||
memset (buf, 0, sizeof (buf));
|
||||
len = g_socket_receive (client, buf, sizeof (buf), NULL, &error);
|
||||
g_assert_no_error (error);
|
||||
g_assert_cmpint (len, ==, strlen (testbuf2));
|
||||
|
Reference in New Issue
Block a user