gio/tests/socket.c: clean up a test case a bit

This commit is contained in:
Dan Winship 2015-06-21 12:00:07 -04:00
parent 368c3f205f
commit b97d666b2f

View File

@ -953,7 +953,7 @@ duplicate_fd(int fd)
}
static void
test_fd_roundtrip (void)
test_fd_reuse (void)
{
IPTestData *data;
GError *error = NULL;
@ -964,6 +964,8 @@ test_fd_roundtrip (void)
gssize len;
gchar buf[128];
g_test_bug ("741707");
data = create_server (G_SOCKET_FAMILY_IPV4, echo_server_thread, FALSE);
addr = g_socket_get_local_address (data->server, &error);
g_assert_no_error (error);
@ -1421,6 +1423,7 @@ main (int argc,
GError *error = NULL;
g_test_init (&argc, &argv, NULL);
g_test_bug_base ("https://bugzilla.gnome.org/");
sock = g_socket_new (G_SOCKET_FAMILY_IPV6,
G_SOCKET_TYPE_STREAM,
@ -1448,7 +1451,7 @@ main (int argc,
#endif
g_test_add_func ("/socket/close_graceful", test_close_graceful);
g_test_add_func ("/socket/timed_wait", test_timed_wait);
g_test_add_func ("/socket/fd_roundtrip", test_fd_roundtrip);
g_test_add_func ("/socket/fd_reuse", test_fd_reuse);
g_test_add_func ("/socket/address", test_sockaddr);
#ifdef G_OS_UNIX
g_test_add_func ("/socket/unix-from-fd", test_unix_from_fd);