Subject: | Test failures in Fedora and RHEL Perl versions < 5.8.8 |
I'm getting test suite failures like this on all Fedora and Red Hat
Perls prior to Fedora 5 [perl 5.8.8] and RHEL 5 [perl 5.8.8] (i.e.
Fedora 4 [perl 5.8.6] and RHEL 4 [perl 5.8.5] and their predecessors all
fail):
...
ok 86 - Called as class method
ok 87 - Replacement handles modules without VERSION
ok 88 - Replacement handles modules without VERSION
ok 89 - Replacement handles modules without VERSION
ok 90 - Replacement handles modules without VERSION
ok 91 - "$version" == 1.2.3
ok 92 - $version == $new_version
Undefined subroutine &main::qv called at t/coretests.pm line 343.
1..92
# Looks like your test died just after 92.
dubious
Attached patch to skip one test in coretests.pm resolves the problem for
me, but my perl-fu isn't strong enough to understand the underlying reason.
Subject: | perl-version-0.77-test.patch |
This patch skips a test that causes fails like the one below on all
distros prior to FC5, RHEL5:
ok 86 - Called as class method
ok 87 - Replacement handles modules without VERSION
ok 88 - Replacement handles modules without VERSION
ok 89 - Replacement handles modules without VERSION
ok 90 - Replacement handles modules without VERSION
ok 91 - "$version" == 1.2.3
ok 92 - $version == $new_version
Undefined subroutine &main::qv called at t/coretests.pm line 343.
1..92
# Looks like your test died just after 92.
dubious
--- version-0.77/t/coretests.pm 2009-07-26 12:49:11.000000000 +0100
+++ version-0.77/t/coretests.pm 2009-07-28 09:22:47.000000000 +0100
@@ -336,6 +336,8 @@
$version = $CLASS->$method(1.0.0);
$new_version = $CLASS->$method(1);
ok($version == $new_version, '$version == $new_version');
+ skip 'qv_declare test failing in Perl < 5.8.8', 1
+ if $] < 5.008_008;
skip "version require'd instead of use'd, cannot test declare", 1
unless defined $qv_declare;
$version = &$qv_declare(1.2.3);