--- AnyEvent/t/68_poe_05_dns.t 2009/07/18 00:05:29 1.4 +++ AnyEvent/t/68_poe_05_dns.t 2011/08/12 18:41:30 1.8 @@ -1,7 +1,12 @@ # we avoid complicated tests here because some systems will # not have working DNS -BEGIN { eval q{use AnyEvent::Impl::POE;1} or ((print qq{1..0 # SKIP AnyEvent::Impl::POE not found}), exit 0) } $^W = 0; +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::POE;1} or ((print qq{1..0 # SKIP AnyEvent::Impl::POE not loadable\n}), exit 0) } + $^W = 0; + use AnyEvent::DNS; $| = 1; print "1..5\n";