Bug 1091916

Summary: Warning in TAP::Parser::SourceHandler::Perl
Product: [Fedora] Fedora Reporter: Petr Pisar <ppisar>
Component: perl-Test-HarnessAssignee: Petr Pisar <ppisar>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: paul, perl-devel, ppisar
Target Milestone: ---Keywords: Patch
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: perl-Test-Harness-3.28-4.fc20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1091376 Environment:
Last Closed: 2014-07-02 13:12:46 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Petr Pisar 2014-04-28 10:19:47 UTC
+++ This bug was initially created as a clone of Bug #1091376 +++

Description of problem:
Spurious warnings in test runs, e.g.

$ ./Build test
# Testing Test::ConsistentVersion 0.2.3
t/00.load.t ....... ok
t/01.good.t ....... ok
t/02.bad.t ........ ok
t/perlcritic.t .... ok
Use of uninitialized value in split at /usr/share/perl5/vendor_perl/TAP/Parser/SourceHandler/Perl.pm line 170.
t/pod-coverage.t .. ok
Use of uninitialized value in split at /usr/share/perl5/vendor_perl/TAP/Parser/SourceHandler/Perl.pm line 170.
t/pod.t ........... ok
# Distribution version: 0.2.3
t/version.t ....... ok
All tests successful.
Files=7, Tests=12,  2 wallclock secs ( 0.03 usr  0.01 sys +  1.19 cusr  0.07 csys =  1.30 CPU)
Result: PASS

Version-Release number of selected component (if applicable):
perl-Test-Harness-3.28-2.el7


This is CPAN RT#85106 and was fixed upstream in version 3.29. There's an API change there though, which probably makes an update unsuitable for RHEL. The fix should easily enough be backported to 3.28 though.

[...]
--- Additional comment from Petr Pisar on 2014-04-28 09:15:10 GMT ---

How to test:

(1) Install perl-Test-Harness.

(2) Create test file `tainted.t' with tainted mode:
$ cat tainted.t 
#!perl -T
print "1..0 # SKIP foo\n";

(3) Run `prove tainted.t'.
Before:
  A warning about an uninitialized value is printed on standard error output:
$ prove tainted.t
Use of uninitialized value in split at /usr/share/perl5/vendor_perl/TAP/Parser/SourceHandler/Perl.pm line 170.
tainted.t .. skipped: foo
Files=1, Tests=0,  0 wallclock secs ( 0.03 usr +  0.01 sys =  0.04 CPU)
Result: NOTESTS

After:
  No warning on standard error output is printed:
$ prove tainted.t 
tainted.t .. skipped: foo
Files=1, Tests=0,  0 wallclock secs ( 0.03 usr +  0.01 sys =  0.04 CPU)
Result: NOTESTS

--- Additional comment from Petr Pisar on 2014-04-28 09:16:18 GMT ---

F20 (perl-Test-Harness-3.28-3.fc20.noarch) is affected.

Comment 1 Fedora Update System 2014-04-28 10:46:27 UTC
perl-Test-Harness-3.28-4.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/perl-Test-Harness-3.28-4.fc20

Comment 2 Fedora Update System 2014-05-06 21:32:39 UTC
perl-Test-Harness-3.28-4.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.