Bug 1141153

Summary: perl-Padre-0.90-13.fc22 FTBFS: a test fails due a warning
Product: [Fedora] Fedora Reporter: Petr Pisar <ppisar>
Component: perl-PadreAssignee: Petr Pisar <ppisar>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: jplesnik, perl-devel, ppisar
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: https://koji.fedoraproject.org/koji/buildinfo?buildID=573534
Whiteboard:
Fixed In Version: perl-Padre-0.90-14.fc22 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-09-15 12:43:55 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-09-12 10:54:05 UTC
perl-Padre-0.90-13.fc22 fails to build in F22:

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/*.t
Xlib:  extension "RANDR" missing on display ":666".
# Tests find Wx: 0.9922 wxWidgets 2.8.12
#   Failed test 'no warnings'
#   at /usr/share/perl5/vendor_perl/Test/NoWarnings.pm line 45.
# There were 1 warning(s)
# 	Previous test 26 'use Padre::Role::Task;'
# 	Possible precedence issue with control flow operator at /builddir/build/BUILD/Padre-0.90/blib/lib/Padre/Document/Perl/QuickFix/StrictWarnings.pm line 71.
#  at /builddir/build/BUILD/Padre-0.90/blib/lib/Padre/Document/Perl/QuickFix/StrictWarnings.pm line 71.
# 	require Padre/Document/Perl/QuickFix/StrictWarnings.pm called at /builddir/build/BUILD/Padre-0.90/blib/lib/Padre.pm line 92
# 	eval {...} called at /builddir/build/BUILD/Padre-0.90/blib/lib/Padre.pm line 92
# 	Padre::import("Padre", ":everything") called at t/01-load.t line 53
# 
# Looks like you failed 1 test of 37.
t/01-load.t ................ 
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/37 subtests

Comment 1 Petr Pisar 2014-09-15 11:55:05 UTC
The warning:

$ xvfb-run -a perl -Iblib/{lib,arch} -e 'use Padre::Util::Win32'
# 1410782039.19129 (eval) 'WARN: Inefficiently loading Padre::Util::Win32 when not on Win32'

is triggered by importing all Padre modules from t/01-load.t:

$ xvfb-run -a perl -Iblib/{lib,arch} -e 'use Padre; Padre->import(q{:everything})'
Xlib:  extension "RANDR" missing on display ":99".
# 1410781999.08414 (eval) 'WARN: Inefficiently loading Padre::Util::Win32 when not on Win32'
Possible precedence issue with control flow operator at blib/lib/Padre/Document/Perl/QuickFix/StrictWarnings.pm line 71.

Comment 2 Petr Pisar 2014-09-15 12:07:05 UTC
The warning is emitted by the Padre module. Upstream solved it by disabling Test::NoWarnings tests in commit:

r19823 | bowtie | 2014-02-02 16:37:37 +0100 (Ne, 02 Ășno 2014) | 2 lines
tweak 01_compile.t so tjat it passes on 5.19.7 (BOWTIE)