Subject: | blib.pm noise in the tests |
blib.pm unhelpfully prints out diagnostic information to STDERR whether you want it to or not. This was removed in 5.8, but 5.6 users get noise when the tests are run.
[/usr/local/src/CPAN/Archive-Zip-1.07] make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/test..............ok
t/testex............ok 7/11Using /usr/local/src/CPAN/Archive-Zip-1.07/blib
t/testex............ok
t/testMemberRead....ok
t/testTree..........Using /usr/local/src/CPAN/Archive-Zip-1.07/blib
t/testTree..........ok
All tests successful.
Files=4, Tests=147, 14 wallclock secs ( 3.99 cusr + 1.73 csys = 5.72 CPU)
The simple solution is to remove the two inconsistent uses of blib.pm from testTree.t and selfex.pl. Patch attached.
--- ./examples/selfex.pl 2003/10/21 01:43:08 1.1
+++ ./examples/selfex.pl 2003/10/21 01:43:10
@@ -12,7 +12,6 @@
# $Revision: 1.1 $
#
use strict;
-use blib;
use Archive::Zip;
use IO::File;
--- ./t/testTree.t 2003/10/21 01:43:19 1.1
+++ ./t/testTree.t 2003/10/21 01:43:21
@@ -7,7 +7,6 @@
$^W = 1;
$| = 1;
use strict;
-use blib;
use Test;
use Archive::Zip qw( :ERROR_CODES :CONSTANTS );
use FileHandle;