Subject: | t.proc test fails against IO::File 1.13, needs 1.14` |
Date: | Thu, 16 Jun 2011 12:53:43 -0400 |
To: | <bug-Crypt-Random-Source [...] rt.cpan.org> |
From: | <John.Elion [...] gdc4s.com> |
Problem:
Crypt-Random-Source test t/proc.t test failed, due to attempt to call
"read" on an undefined variable.
Distribution: Crypr-Random-Source-0.07.tar.gz
Environment:
Red Hat Enterprise Linux 5.1 / 2.6.18-238.9.1.el5 / x86_64;
Perl 5.8.8
Ultimately, it seems that the package depends on a bug fix in IO 1.25,
or more specifically, IO::File 1.14.
Additional information:
I traced this down to a failure in Handle.pm of "$fh =
IO::File->new(\$stdout, '<')" to return a file handle; since $fh is not
defined, the following call to read fails.
I wrote a simple Perl script to do this same thing outside of the
framework (define a local string variable and try to open an in-memory
file from it) and that script failed as well.
I didn't see anything obvious wrong with IO::File, but I noticed a newer
version available (I had 1.13, 1.14 was included in IO 1.25). I
upgraded IO; my test script worked, and then the t/proc test in this
package worked.
Maybe if the problem is confirmed update the dependencies? If not, I
want to share the problem and fix in case someone else sees it, since my
search didn't turn up this behavior.
John Elion
Abbreviated log:
(# make test TEST_VERBOSE=1
...
t/proc.t ................
ok 1 - use Crypt::Random::Source::Base::Proc;
Can't call method "read" on an undefined value at
/tmp/cpan/Crypt-Random-Source-0.07/blib/lib/Crypt/Random/Source/Base/Han
dle.pm line 38.
1..1
# Looks like your test exited with 2 just after 1.
Dubious, test returned 2 (wstat 512, 0x200)
All 1 subtests passed
t/rand.t ................
...
Test Summary Report
-------------------
t/proc.t (Wstat: 512 Tests: 1 Failed: 0)
Non-zero exit status: 2
Files=9, Tests=51, 1 wallclock secs ( 0.05 usr 0.02 sys + 0.49 cusr
0.09 csys = 0.65 CPU)
Result: FAIL
Failed 1/9 test programs. 0/51 subtests failed.
make: *** [test_dynamic] Error 255