--- AnyEvent/t/69_ev_04_condvar.t 2008/10/02 08:43:58 1.1 +++ AnyEvent/t/69_ev_04_condvar.t 2011/07/04 21:14:30 1.5 @@ -1,11 +1,8 @@ -$|=1; -BEGIN { unless (eval "require EV") { print "1..0 # skip because EV isn't installed"; exit } } -BEGIN { - print "1..21\n" -} - use AnyEvent; -use AnyEvent::Impl::EV; +BEGIN { eval q{use AnyEvent::Impl::EV;1} or ((print qq{1..0 # SKIP AnyEvent::Impl::EV not loadable +}), exit 0) } + +$| = 1; print "1..21\n"; print "ok 1\n";