Skip Menu |

This queue is for tickets about the Test-Compile CPAN distribution.

Report information
The Basics
Id: 78363
Status: resolved
Priority: 0/
Queue: Test-Compile

People
Owner: Nobody in particular
Requestors: user42 [...] zip.com.au
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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;
Hi Thanks for you bug report. The line you identified was generating a warning, I thought I had suppressed it by closing STDERR, but perl was still throwing a warning. Unfortunately, I was not able to generate a test for the condition, but I do believe it has been fixed in version 0.18.