[Bug 1143822] New: Do not set default switches in Test::Harness
bugzilla at redhat.com
bugzilla at redhat.com
Thu Sep 18 05:31:30 UTC 2014
https://bugzilla.redhat.com/show_bug.cgi?id=1143822
Bug ID: 1143822
Summary: Do not set default switches in Test::Harness
Product: Fedora
Version: 20
Component: perl-ExtUtils-MakeMaker
Assignee: ppisar at redhat.com
Reporter: jplesnik at redhat.com
QA Contact: extras-qa at fedoraproject.org
CC: mmaslano at redhat.com,
perl-devel at lists.fedoraproject.org, ppisar at redhat.com
Blocks: 1127476, 1127477
Created attachment 938748
--> https://bugzilla.redhat.com/attachment.cgi?id=938748&action=edit
Patch with fix
I tried to update perl-Syntax-Highlight-Engine-Kate to version 0.09, but it
failed with following error
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0,
'inc', 'blib/lib', 'blib/arch')" t/*.t
# Failed test 'warn'
# at t/02-perl.t line 31.
# found carped warning: undefined language: 'Klingon' at t/02-perl.t line
26.
# found warning: Use of uninitialized value in concatenation (.) or string
at
/builddir/build/BUILD/Syntax-Highlight-Engine-Kate-0.09/blib/lib/Syntax/Highlight/Engine/Kate/Template.pm
line 499.
# found carped warning: cannot create plugin for language 'Klingon'
# expected to find carped warning: (?^:undefined language: 'Klingon')
# expected to find carped warning: (?^:cannot create plugin for language
'Klingon')
# Looks like you failed 1 test of 2.
# Failed test 'klingon'
# at t/02-perl.t line 33.
[..]
The source of the issue is old version of perl-ExtUtils-MakeMaker, which allows
to set default switches (e.g. -w) in Test::Harness.
It was fixed at version 6.77_7
commit 37c20b4442e87cb678301cf742604f23a8d30a82
Author: Ricardo Signes <rjbs at cpan.org>
AuthorDate: Sat Sep 21 10:12:51 2013 +0900
Commit: Ricardo Signes <rjbs at cpan.org>
CommitDate: Sat Sep 21 10:12:51 2013 +0900
do not set default switches in Test::Harness; not even -w
New test command generated by updated EU::MM passed.
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-MTest::Harness"
"-e" "undef *Test::Harness::Switches; test_harness(0, 'inc', 'blib/lib',
'blib/arch')" t/02-perl.t
t/02-perl.t .. ok
All tests successful.
Fedora 19 is also affected.
The patch works for both (F19 and F20).
Referenced Bugs:
https://bugzilla.redhat.com/show_bug.cgi?id=1127476
[Bug 1127476] Please update to upstream version >= 0.09
https://bugzilla.redhat.com/show_bug.cgi?id=1127477
[Bug 1127477] Please update to upstream version >= 0.09
--
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=zVmtfMnHdi&a=cc_unsubscribe
More information about the perl-devel
mailing list