ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent/t/64_glib_05_dns.t
Revision: 1.1
Committed: Thu Oct 2 08:43:57 2008 UTC (16 years, 2 months ago) by root
Content type: application/x-troff
Branch: MAIN
CVS Tags: rel-4_35, rel-4_4, rel-4_45, rel-4_82, rel-4_41, rel-4_352, rel-4_42, rel-4_31, rel-4_32, rel-4_34, rel-4_412, rel-4_83, rel-4_81, rel-4_3, rel-4_33, rel-4_411, rel-4_351, rel-4_8, rel-4_331
Log Message:
*** empty log message ***

File Contents

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