summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Griffis <pgriffis@igalia.com>2021-01-29 13:52:34 -0600
committerPatrick Griffis <tingping@tingping.se>2021-04-13 21:14:37 +0000
commitf5b87c90193e68bc69a5c44bff3cd006c21a0818 (patch)
tree9a505c3891137c6e1ef60a10a1cd4d66b0146ec2
parent99adb14274c74073bd0831352c069bfe592a6a27 (diff)
downloadlibsoup-f5b87c90193e68bc69a5c44bff3cd006c21a0818.tar.gz
autobahn: Remove duplicate debug arg
This is already handled by test-utils
-rw-r--r--tests/autobahn/soup-autobahn-test-client.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/tests/autobahn/soup-autobahn-test-client.c b/tests/autobahn/soup-autobahn-test-client.c
index b3bf804a..047149d4 100644
--- a/tests/autobahn/soup-autobahn-test-client.c
+++ b/tests/autobahn/soup-autobahn-test-client.c
@@ -53,7 +53,6 @@ static gboolean option_run_all = FALSE;
static int option_run_test = -1;
static gboolean option_number_of_tests = FALSE;
static gboolean option_update_report = FALSE;
-static gboolean option_debug = FALSE;
static GOptionEntry entries[] =
{
@@ -61,7 +60,6 @@ static GOptionEntry entries[] =
{ "test", 't', 0, G_OPTION_ARG_INT, &option_run_test, "Run TEST only", "TEST" },
{ "number-of-tests", 'n', 0, G_OPTION_ARG_NONE, &option_number_of_tests, "Queries the Autobahn server for the number of test cases", NULL },
{ "update-report", 'r', 0, G_OPTION_ARG_NONE, &option_update_report, "Requests the Autobahn server to update the report for tests", NULL },
- { "debug", 'd', 0, G_OPTION_ARG_NONE, &option_debug, "Enables extra debug output", NULL },
{ NULL }
};
@@ -72,8 +70,7 @@ on_message_received (SoupWebsocketConnection *socket_connection,
{
ConnectionContext *ctx = (ConnectionContext*) data;
- if (option_debug)
- debug_printf (1, "<- ");
+ debug_printf (1, "<- ");
if (ctx && ctx->method)
ctx->method (socket_connection, type, message, ctx->data);
@@ -85,8 +82,7 @@ on_connection_closed (SoupWebsocketConnection *socket_connection,
{
ConnectionContext *ctx = (ConnectionContext*) data;
- if (option_debug)
- debug_printf (1, "\nConnection closed\n");
+ debug_printf (1, "\nConnection closed\n");
g_free (ctx);
@@ -123,8 +119,7 @@ connect_and_run (SoupSession *session, char *path, ConnectionFunc method, gpoint
ctx->method = method;
ctx->data = data;
- if (option_debug)
- debug_printf (1, "About to connect to %s\n", uri);
+ debug_printf (1, "About to connect to %s\n", uri);
soup_session_websocket_connect_async (session, message, NULL, NULL, G_PRIORITY_DEFAULT, NULL, on_connect, ctx);
g_object_unref (message);
@@ -143,8 +138,7 @@ test_case_message_received (SoupWebsocketConnection *socket_connection,
if (soup_websocket_connection_get_state (socket_connection) != SOUP_WEBSOCKET_STATE_OPEN)
return;
- if (option_debug)
- debug_printf (1, "-> ");
+ debug_printf (1, "-> ");
soup_websocket_connection_send_message (socket_connection, type, message);
}