From dea11643a9024874a355b7d7dcd26fd6bff01d6f Mon Sep 17 00:00:00 2001 From: Mike Salmela Date: Sat, 29 Apr 2023 21:04:33 +0300 Subject: [PATCH] Rename confusing socket test filenames The gio/tests/socket-client.c doesn't use GSocketClient, which makes the filename confusing. What the file actually tests is the GSocket. Rename it to socket-testclient.c The corresponding GSocket server test file naming doesn't conflict with other class names, but rename it to socket-testserver.c for consistency. Closes #2855 --- gio/tests/meson.build | 4 ++-- gio/tests/socket-common.c | 2 +- gio/tests/{socket-client.c => socket-testclient.c} | 0 gio/tests/{socket-server.c => socket-testserver.c} | 0 4 files changed, 3 insertions(+), 3 deletions(-) rename gio/tests/{socket-client.c => socket-testclient.c} (100%) rename gio/tests/{socket-server.c => socket-testserver.c} (100%) diff --git a/gio/tests/meson.build b/gio/tests/meson.build index 8da884001..2ff34a5d0 100644 --- a/gio/tests/meson.build +++ b/gio/tests/meson.build @@ -590,8 +590,8 @@ test_extra_programs += { 'proxy' : {'install' : false}, 'resolver' : {'install' : false}, 'send-data' : {'install' : false}, - 'socket-server' : {'install' : false}, - 'socket-client' : { + 'socket-testserver' : {'install' : false}, + 'socket-testclient' : { 'extra_sources' : ['gtlsconsoleinteraction.c'], 'install' : false, }, diff --git a/gio/tests/socket-common.c b/gio/tests/socket-common.c index 18d083a30..b740f68e7 100644 --- a/gio/tests/socket-common.c +++ b/gio/tests/socket-common.c @@ -1,4 +1,4 @@ -/* #included into both socket-client.c and socket-server.c */ +/* #included into both socket-testclient.c and socket-testserver.c */ #ifdef G_OS_UNIX static const char *unix_socket_address_types[] = { diff --git a/gio/tests/socket-client.c b/gio/tests/socket-testclient.c similarity index 100% rename from gio/tests/socket-client.c rename to gio/tests/socket-testclient.c diff --git a/gio/tests/socket-server.c b/gio/tests/socket-testserver.c similarity index 100% rename from gio/tests/socket-server.c rename to gio/tests/socket-testserver.c