[gupnp] Explicitly use IPv4 in test
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gupnp] Explicitly use IPv4 in test
- Date: Fri, 30 Nov 2012 14:42:47 +0000 (UTC)
commit 69b9457a6b05eac8d627b7209ce9dea302735411
Author: Jens Georg <mail jensge org>
Date: Fri Nov 30 14:53:13 2012 +0100
Explicitly use IPv4 in test
Otherwise it seems to break where localhost resolves to ::1 since we don't
handle IPv6 properly.
https://bugzilla.gnome.org/show_bug.cgi?id=685643
tests/gtest/test-context.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/tests/gtest/test-context.c b/tests/gtest/test-context.c
index 9126e87..9fbb257 100644
--- a/tests/gtest/test-context.c
+++ b/tests/gtest/test-context.c
@@ -146,7 +146,7 @@ test_gupnp_context_http_ranged_requests (void)
DATA_PATH "/random4k.bin",
"/random4k.bin");
- uri = g_strdup_printf ("http://localhost:%u/random4k.bin", port);
+ uri = g_strdup_printf ("http://127.0.0.1:%u/random4k.bin", port);
g_assert (uri != NULL);
session = soup_session_async_new ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]