Make t/pod/pod2usage2.t work on case insensitive file systems.
authorJerry D. Hedden <jdhedden@cpan.org>
Mon, 2 Feb 2009 21:25:38 +0000 (21:25 +0000)
committerNicholas Clark <nick@ccl4.org>
Mon, 2 Feb 2009 21:25:38 +0000 (21:25 +0000)
commit767c16ab361d1225fb153423fb22b590c1e0c7ea
treed13dd9bae385c208b6bc8d275748102f589b2813
parent440530af1a2c3ef817725c0837bb0b5f1348389a
Make t/pod/pod2usage2.t work on case insensitive file systems.

pod_where() checks the current dir when looking for PODs
when the -dirs option is not specified.  Because of
case-insensitivity under Cygwin, this causes t/pod/usage.pod
to get found before lib/Pod/Usage.pm.

The fix is to set -dir=>[] in pod_where() when testing in
CORE under Cygwin.  The attached patch does this.
t/pod/pod2usage2.t