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.2 by root, Fri May 23 16:36:02 2008 UTC vs.
Revision 1.3 by root, Sat May 24 17:21:50 2008 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines