* [2.25 COMMITTED] resolv/tst-resolv-basic: Add test cases for bug 21295
@ 2018-01-01 0:00 Florian Weimer
0 siblings, 0 replies; only message in thread
From: Florian Weimer @ 2018-01-01 0:00 UTC (permalink / raw)
To: libc-stable
(cherry picked from commit 513a71a420e74270a6a9702ec916e807be51350a)
2017-06-24 Florian Weimer <fweimer@redhat.com>
[BZ #21295]
* resolv/tst-resolv-basic.c (do_test): Add new test cases.
diff --git a/resolv/tst-resolv-basic.c b/resolv/tst-resolv-basic.c
index 92f912beed..3dfa1657f5 100644
--- a/resolv/tst-resolv-basic.c
+++ b/resolv/tst-resolv-basic.c
@@ -398,6 +398,22 @@ do_test (void)
check_ai ("t.nxdomain.example", "80", AF_INET6,
"error: Name or service not known\n");
+ /* Test for bug 21295. */
+ check_ai_hints ("www.example", "80",
+ (struct addrinfo) { .ai_family = AF_INET6,
+ .ai_socktype = SOCK_STREAM,
+ .ai_flags = AI_V4MAPPED | AI_ALL, },
+ "flags: AI_V4MAPPED AI_ALL\n"
+ "address: STREAM/TCP 2001:db8::1 80\n"
+ "address: STREAM/TCP ::ffff:192.0.2.17 80\n");
+ check_ai_hints ("t.www.example", "80",
+ (struct addrinfo) { .ai_family = AF_INET6,
+ .ai_socktype = SOCK_STREAM,
+ .ai_flags = AI_V4MAPPED | AI_ALL, },
+ "flags: AI_V4MAPPED AI_ALL\n"
+ "address: STREAM/TCP 2001:db8::3 80\n"
+ "address: STREAM/TCP ::ffff:192.0.2.19 80\n");
+
resolv_test_end (aux);
return 0;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-01-04 12:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-01 0:00 [2.25 COMMITTED] resolv/tst-resolv-basic: Add test cases for bug 21295 Florian Weimer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).