ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent/t/05_dns.t
(Generate patch)

Comparing AnyEvent/t/05_dns.t (file contents):
Revision 1.1 by root, Fri May 23 16:00:36 2008 UTC vs.
Revision 1.4 by root, Sat Jul 18 00:05:29 2009 UTC

1$|=1;
2BEGIN { print "1..2\n" }
3
4# we avoid complicated tests here because some systems will 1# we avoid complicated tests here because some systems will
5# not have working DNS 2# not have working DNS
6 3
4use AnyEvent::Impl::Perl;
7use AnyEvent::DNS; 5use AnyEvent::DNS;
6
7$| = 1; print "1..5\n";
8 8
9print "ok 1\n"; 9print "ok 1\n";
10 10
11AnyEvent->resolver; 11AnyEvent::DNS::resolver;
12 12
13print "ok 2\n"; 13print "ok 2\n";
14 14
15# make sure we timeout faster
16AnyEvent::DNS::resolver->{timeout} = [0.5];
17AnyEvent::DNS::resolver->_compile;
18
19print "ok 3\n";
20
21my $cv = AnyEvent->condvar;
22
23AnyEvent::DNS::a "www.google.de", sub {
24 print "ok 4 # www.google.de => @_\n";
25 $cv->send;
26};
27
28$cv->recv;
29
30print "ok 5\n";
31

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines