INN commit: branches/2.5/tests/lib (getnameinfo-t.c)
INN Commit
rra at isc.org
Mon Dec 26 16:01:08 UTC 2011
Date: Monday, December 26, 2011 @ 08:01:08
Author: iulius
Revision: 9389
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:
branches/2.5/tests/lib/getnameinfo-t.c
-----------------+
getnameinfo-t.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
Modified: getnameinfo-t.c
===================================================================
--- getnameinfo-t.c 2011-12-26 15:55:11 UTC (rev 9388)
+++ getnameinfo-t.c 2011-12-26 16:01:08 UTC (rev 9389)
@@ -63,7 +63,8 @@
status = test_getnameinfo(sa, sizeof(sin), NULL, 0, service,
sizeof(service), NI_DGRAM);
ok_int(13, 0, status);
- ok_string(14, "biff", service);
+ ok(14, service != NULL &&
+ (strcmp("biff", service) == 0 || strcmp("comsat", service) == 0));
status = test_getnameinfo(sa, sizeof(sin), node, sizeof(node), NULL, 0,
NI_NUMERICHOST);
ok_int(15, 0, status);
More information about the inn-committers
mailing list