perl-diddler has asked for the wisdom of the Perl Monks concerning the following question:
I am getting test reports in CPAN for my P module.
Spent some time removing most or all of the new features I could think of -- replacing switch/when things like that -- thinking maybe I could get it working with -- maybe back to 5.8...not sure...
But last time had fails on 5.12-5.16 all platforms.
This time, it's 1 platform that is giving me problems I'm clueless on.
5.12 BSD.
Am getting:
In my code at 95+96, I have:# Failed test at t/P.t line 96. self-test failed: Can't locate object method "print" via package "IO:: +File" at lib/P.pm line 119. Use of uninitialized value $rcase in numeric eq (==) at t/P.t line 95. # Failed test 'received testcase 2' # at t/P.t line 95. Use of uninitialized value $rstr in pattern match (m//) at t/P.t line +96. # Failed test at t/P.t line 96. self-test failed: Can't locate object method "print" via package "IO:: +File" at lib/P.pm line 119. Use of uninitialized value $rcase in numeric eq (==) at t/P.t line 95. ...a bunch more...
Is something broken on the BSD 5.12 platform? I'm guessing that the test harness is calling print, but "print" in class IO::File, I thought, was a CORE function? How could it not be there?ok($caseno == $rcase, "received testcase $caseno"); if (length($re)) {ok($rstr =~ m{$re}, $name)}
Maybe someone from BSD land on here -- was perl badly broken in 5.12?
Test case uses 'Test::More'....
Thanks -- I'm sure others have dealt with this type of stuff before, yes? ;-)
|
---|
Back to
Seekers of Perl Wisdom