summaryrefslogtreecommitdiff
path: root/tests/forms-test.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2009-03-27 19:47:03 +0000
committerDan Winship <danw@src.gnome.org>2009-03-27 19:47:03 +0000
commite9ba1d1933517fa83bfefe7c6de52f0715f62b40 (patch)
tree36820931285ae580cb6f5f515398c62757333d9c /tests/forms-test.c
parent2c29072c807554894d31a15d5d01ebd8b8758fd5 (diff)
downloadlibsoup-e9ba1d1933517fa83bfefe7c6de52f0715f62b40.tar.gz
libsoup-e9ba1d1933517fa83bfefe7c6de52f0715f62b40.tar.bz2
libsoup-e9ba1d1933517fa83bfefe7c6de52f0715f62b40.zip
Bug 576583 - Tests fail if "localhost" resolves to ::1
* tests/*.c: Use "127.0.0.1" in URIs rather than "localhost", since the default SoupServer config only listen on IPv4 (qv bug 522519), and tests/httpd.conf.in only configures apache to listen on IPv4, and we don't handle multiple IP addresses (qv bug 526321) but the machine might be configured to return "::1" rather than "127.0.0.1" first for "localhost". Patch from Andreas Rottmann. svn path=/trunk/; revision=1257
Diffstat (limited to 'tests/forms-test.c')
-rw-r--r--tests/forms-test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/forms-test.c b/tests/forms-test.c
index 74792f11..e48c9c9a 100644
--- a/tests/forms-test.c
+++ b/tests/forms-test.c
@@ -412,11 +412,11 @@ main (int argc, char **argv)
loop = g_main_loop_new (NULL, TRUE);
if (run_tests) {
- uri_str = g_strdup_printf ("http://localhost:%u/hello", port);
+ uri_str = g_strdup_printf ("http://127.0.0.1:%u/hello", port);
do_hello_tests (uri_str);
g_free (uri_str);
- uri_str = g_strdup_printf ("http://localhost:%u/md5", port);
+ uri_str = g_strdup_printf ("http://127.0.0.1:%u/md5", port);
do_md5_tests (uri_str);
g_free (uri_str);
} else {