[libsoup/autobahn-integration-new] autobahn-test.c: Print out in stderr name of test being executed
- From: Diego Pino <dpino src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup/autobahn-integration-new] autobahn-test.c: Print out in stderr name of test being executed
- Date: Tue, 16 Mar 2021 00:57:34 +0000 (UTC)
commit 3317f38cc652bfae3fcb72768bcd622936546e27
Author: Diego Pino Garcia <dpino igalia com>
Date: Tue Mar 16 00:56:19 2021 +0000
autobahn-test.c: Print out in stderr name of test being executed
tests/autobahn/autobahn-test.c | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/tests/autobahn/autobahn-test.c b/tests/autobahn/autobahn-test.c
index a51e7698..ecc3de65 100644
--- a/tests/autobahn/autobahn-test.c
+++ b/tests/autobahn/autobahn-test.c
@@ -23,6 +23,7 @@
#include "test-utils.h"
#include <libsoup/soup.h>
+#include <stdio.h>
static char *address = "ws://localhost:9001";
static char *agent = "libsoup";
@@ -119,12 +120,15 @@ connect_and_run (SoupSession *session, char *path, ConnectionFunc method, gpoint
time_t now = time(NULL);
const int timeout = 30;
const time_t threshold = now + timeout;
+
+ fprintf(stderr, "### Run %s\n", uri);
while (!ctx->done) {
g_main_context_iteration (async_context, TRUE);
now = time(NULL);
if (now > threshold) {
debug_printf (1, "Test timeout: %s\n", uri);
g_test_message ("Test timeout: %s\n", uri);
+ fprintf(stderr, "### Timeout on %s\n", uri);
// FIXME: On a timeout, if ctx is freed no more test are executed.
g_object_unref (message);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]