On 2015-10-30 06:14:53, SREZIC wrote:
Show quoted text> It seems that sometimes the t/srv.t test fails (various Linux &
> FreeBSD systems):
>
> # Failed test 'Jabber SRV record for gmail.com contains xmpp-
> # server.l.google.com'
> # at t/srv.t line 14.
> # Looks like you failed 1 test of 2.
> t/srv.t ....
> Dubious, test returned 1 (wstat 256, 0x100)
> Failed 1/2 subtests
Actually this seems to be a problem of the nameservers of my DSL provider. If I change srv.t to use another nameserver (e.g. Google's 8.8.8.8), then things work on the same system. Patch would look like this:
diff --git a/t/srv.t b/t/srv.t
index e790257..c317d7f 100644
--- a/t/srv.t
+++ b/t/srv.t
@@ -9,6 +9,6 @@ my (@res);
use_ok("Net::Nslookup");
# Get A record
-@res = nslookup(host => "_jabber._tcp.gmail.com", type => "SRV");
+@res = nslookup(host => "_jabber._tcp.gmail.com", type => "SRV", server => '8.8.8.8');
ok(grep("xmpp-server.l.google.com", @res), "Jabber SRV record for gmail.com contains xmpp-server.l.google.com");