| 1 | =for poe_tests | ||
| 2 | BEGIN { $ENV{LIBEV_FLAGS} = 8; } | ||
| 3 | sub skip_tests { | ||
| 4 | return "Author and automated testing only" | ||
| 5 | unless $ENV{AUTHOR_TESTING} or $ENV{AUTOMATED_TESTING}; | ||
| 6 | return "EV module with kqueue backend could not be loaded" if ( | ||
| 7 | do { eval "use EV"; $@ } | ||
| 8 | ); | ||
| 9 | return "EV was not built with a kqueue backend" | ||
| 10 | if EV::backend() != EV::BACKEND_KQUEUE(); | ||
| 11 | return "wheel_readwrite test disabled for kqueue" | ||
| 12 | if $_[0] eq 'wheel_readwrite'; | ||
| 13 | diag("Using EV with kqueue backend") if $_[0] eq '00_info'; | ||
| 14 | } |