--- AnyEvent/t/66_ioasync_05_dns.t 2009/07/09 22:49:18 1.2 +++ AnyEvent/t/66_ioasync_05_dns.t 2013/07/30 23:14:33 1.9 @@ -1,12 +1,17 @@ -$|=1; -BEGIN { print "1..5\n" } - # we avoid complicated tests here because some systems will # not have working DNS -use AnyEvent::Impl::IOAsync; use IO::Async::Loop; AnyEvent::Impl::IOAsync::set_loop new IO::Async::Loop; +use AnyEvent; + + BEGIN { $^W = 0 } + BEGIN { $ENV{PERL_ANYEVENT_LOOP_TESTS} or ((print qq{1..0 # SKIP PERL_ANYEVENT_LOOP_TESTS not true\n}), exit 0) } + BEGIN { eval q{use AnyEvent::Impl::IOAsync;1} or ((print qq{1..0 # SKIP AnyEvent::Impl::IOAsync not loadable\n}), exit 0) } + + use AnyEvent::DNS; +$| = 1; print "1..5\n"; + print "ok 1\n"; AnyEvent::DNS::resolver;