# test with pod_where
use_ok('Pod::Find', qw(pod_where));
-($exit, $text) = getoutput( sub { pod2usage( -input => pod_where({-inc => 1}, 'Pod::Usage'),
+# Exclude current dir when testing in CORE under Cygwin
+my @NO_CURDIR = ($^O eq 'cygwin' && $ENV{PERL_CORE})
+ ? ('-dirs' => [])
+ : ();
+($exit, $text) = getoutput( sub { pod2usage( -input => pod_where({-inc => 1, @NO_CURDIR}, 'Pod::Usage'),
-exitval => 0, -verbose => 0) } );
$text =~ s{#Using.*/blib.*\n}{}; # older blib's emit something to STDERR
is ($exit, 0, "Exit status pod2usage with Pod::Find");