1 | # we avoid complicated tests here because some systems will |
1 | # we avoid complicated tests here because some systems will |
2 | # not have working DNS |
2 | # not have working DNS |
3 | |
3 | |
4 | use AnyEvent; |
4 | use AnyEvent; |
|
|
5 | |
|
|
6 | BEGIN { $ENV{PERL_ANYEVENT_LOOP_TESTS} or ((print qq{1..0 # SKIP PERL_ANYEVENT_LOOP_TESTS not true\n}), exit 0) } |
5 | BEGIN { eval q{use AnyEvent::Impl::Event;1} or ((print qq{1..0 # SKIP AnyEvent::Impl::Event not loadable |
7 | BEGIN { eval q{use AnyEvent::Impl::Event;1} or ((print qq{1..0 # SKIP AnyEvent::Impl::Event not loadable\n}), exit 0) } |
6 | }), exit 0) } |
8 | |
|
|
9 | |
7 | use AnyEvent::DNS; |
10 | use AnyEvent::DNS; |
8 | |
11 | |
9 | $| = 1; print "1..5\n"; |
12 | $| = 1; print "1..5\n"; |
10 | |
13 | |
11 | print "ok 1\n"; |
14 | print "ok 1\n"; |