--- AnyEvent/t/64_glib_05_dns.t 2008/10/02 08:43:57 1.1 +++ AnyEvent/t/64_glib_05_dns.t 2011/08/12 18:41:28 1.6 @@ -1,12 +1,16 @@ -$|=1; -BEGIN { print "1..5\n" } - # we avoid complicated tests here because some systems will # not have working DNS -use AnyEvent::Impl::Glib; +use AnyEvent; + + 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::Glib;1} or ((print qq{1..0 # SKIP AnyEvent::Impl::Glib not loadable\n}), exit 0) } + + use AnyEvent::DNS; +$| = 1; print "1..5\n"; + print "ok 1\n"; AnyEvent::DNS::resolver;