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