INN commit: trunk/tests/lib (getnameinfo-t.c)
INN Commit
rra at isc.org
Mon Dec 26 15:55:12 UTC 2011
Date: Monday, December 26, 2011 @ 07:55:11
Author: iulius
Revision: 9388
test suite: allow the biff service to be named comsat
On some systems, the comsat alias for biff is first, so a lookup of
UDP port 512 returns it instead. Thanks to Jeffrey Vinocur for the
report.
Modified:
trunk/tests/lib/getnameinfo-t.c
-----------------+
getnameinfo-t.c | 2 ++
1 file changed, 2 insertions(+)
Modified: getnameinfo-t.c
===================================================================
--- getnameinfo-t.c 2011-12-26 05:42:18 UTC (rev 9387)
+++ getnameinfo-t.c 2011-12-26 15:55:11 UTC (rev 9388)
@@ -98,6 +98,8 @@
serv = getservbyname("biff", "udp");
if (serv == NULL)
skip("biff service not found");
+ else if (strcmp(service, "comsat") == 0)
+ is_string("comsat", service, "...and found comsat");
else
is_string("biff", service, "...and found biff");
status = test_getnameinfo(sa, sizeof(sin), node, sizeof(node), NULL, 0,
More information about the inn-committers
mailing list