Web lists-archives.com

[PATCH 5/6] tests: Fix network-address test




GResolver considers the scope ID, which results in an invalid
resolution.

Signed-off-by: Ingo Brückl <ib@xxxxxxxxxxxxxxx>
---
 gio/tests/network-address.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/gio/tests/network-address.c b/gio/tests/network-address.c
index 622af17..03bde89 100644
--- a/gio/tests/network-address.c
+++ b/gio/tests/network-address.c
@@ -123,10 +123,8 @@ static ResolveTest address_tests[] = {
   { "192.168.1.2",         TRUE,  TRUE,  TRUE },
   { "fe80::42",            TRUE,  TRUE,  TRUE },

-  /* GResolver accepts this by ignoring the scope ID. This was not
-   * intentional, but it's best to not "fix" it at this point.
-   */
-  { "fe80::42%1",          TRUE,  TRUE,  FALSE },
+  /* GResolver observes the scope ID. */
+  { "fe80::42%1",          TRUE,  FALSE, FALSE },

   /* g_network_address_parse() accepts these, but they are not
    * (just) IP addresses.
--
2.8.2

_______________________________________________
gtk-devel-list mailing list
gtk-devel-list@xxxxxxxxx
https://mail.gnome.org/mailman/listinfo/gtk-devel-list