Subject: | warning about STDERR |
Date: | Sat, 14 Jul 2012 10:10:18 +1000 |
To: | bug-Test-Compile [...] rt.cpan.org |
From: | Kevin Ryde <user42 [...] zip.com.au> |
With recent debian i386 perl 5.14.2 and Test::Compile 0.17 the program
foo.pl below gets a warning
Filehandle STDERR reopened as FILE only for input at /usr/share/perl5/Test/Compile.pm line 186.
I struck this in a test script where I use a sigwarn handler to detect
compile-time warnings from the modules tested.
For some strange reason there's no message printed when there's no
warning handler. Dunno if that means it's not a real error. The
claimed offending part of Test::Compile seems a pretty reasonable sort
of open.
#!/usr/bin/perl
use strict;
use Test::More;
use Test::Compile;
$SIG{'__WARN__'} = sub {
print @_;
};
plan tests => 1;
pl_file_ok('/usr/bin/pod2man');
exit 0;