Skip Menu |

This queue is for tickets about the BerkeleyDB CPAN distribution.

Report information
The Basics
Id: 43437
Status: resolved
Priority: 0/
Queue: BerkeleyDB

People
Owner: Nobody in particular
Requestors: paul [...] city-fan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.37
Fixed in: 0.38



Subject: t/examples and t/examples3 fail on older perls in Fedora/Red Hat
The change in 0.37 to use "use util(1)" rather than just "use util" causes the "examples" and "examples3" tests to fail in all Fedora / Red Hat Enterprise Linux releases earlier than Fedora 9 (the first with perl 5.10), e.g. from RHEL5: t/examples..... util does not define $util::VERSION--version check failed at /usr/lib/perl5/5.8.8/Exporter/Heavy.pm line 121. BEGIN failed--compilation aborted at t/examples.t line 15. # Looks like your test died before it could output anything. dubious Test returned status 255 (wstat 65280, 0xff00) t/examples3.... util does not define $util::VERSION--version check failed at /usr/lib/perl5/5.8.8/Exporter/Heavy.pm line 121. BEGIN failed--compilation aborted at t/examples3.t line 15. # Looks like your test died before it could output anything. dubious Test returned status 255 (wstat 65280, 0xff00) Reverting this change allows all of the tests to pass.
Subject: perl-BerkeleyDB-0.37-examples-test.patch
--- BerkeleyDB-0.37/t/examples.t.orig 2009-02-18 20:30:03.000000000 +0000 +++ BerkeleyDB-0.37/t/examples.t 2009-02-19 13:39:06.000000000 +0000 @@ -12,7 +12,7 @@ use lib 't'; use BerkeleyDB; use Test::More; -use util(1); +use util; plan tests => 7; --- BerkeleyDB-0.37/t/examples3.t.orig 2009-02-18 20:30:03.000000000 +0000 +++ BerkeleyDB-0.37/t/examples3.t 2009-02-19 13:39:31.000000000 +0000 @@ -12,7 +12,7 @@ use lib 't'; use BerkeleyDB; use Test::More; -use util (1); +use util; #BEGIN #{