[perl-Padre] Disable Test::NoWarnings t/01-load.t tests

Petr Pisar ppisar at fedoraproject.org
Mon Sep 15 12:27:59 UTC 2014


commit 20362308046033710fb88e1d6993fcf215967f12
Author: Petr Písař <ppisar at redhat.com>
Date:   Mon Sep 15 14:13:40 2014 +0200

    Disable Test::NoWarnings t/01-load.t tests

 ...Disable-Test-NoWarnings-t-01-load.t-tests.patch |   58 ++++++++++++++++++++
 perl-Padre.spec                                    |    9 +++-
 2 files changed, 66 insertions(+), 1 deletions(-)
---
diff --git a/Padre-0.90-Disable-Test-NoWarnings-t-01-load.t-tests.patch b/Padre-0.90-Disable-Test-NoWarnings-t-01-load.t-tests.patch
new file mode 100644
index 0000000..cfc746e
--- /dev/null
+++ b/Padre-0.90-Disable-Test-NoWarnings-t-01-load.t-tests.patch
@@ -0,0 +1,58 @@
+From 05dfc578854d698ce7db5b6db29593a16859359c Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar at redhat.com>
+Date: Mon, 15 Sep 2014 14:17:58 +0200
+Subject: [PATCH] Disable Test::NoWarnings t/01-load.t tests
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Upstream 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)
+
+ported to 0.90.
+
+Signed-off-by: Petr Písař <ppisar at redhat.com>
+---
+ t/01-load.t | 8 ++++++--
+ 1 file changed, 6 insertions(+), 2 deletions(-)
+
+diff --git a/t/01-load.t b/t/01-load.t
+index 6391fdb..6666c9d 100644
+--- a/t/01-load.t
++++ b/t/01-load.t
+@@ -11,13 +11,14 @@ BEGIN {
+ 		exit 0;
+ 	}
+ }
+-plan( tests => 37 );
++#plan( tests => 37 );
+ 
+ use Test::Script;
+-use Test::NoWarnings;
++#use Test::NoWarnings;
+ 
+ local $^W = 1;
+ 
++BEGIN {
+ use_ok('Wx');
+ diag( "Tests find Wx: $Wx::VERSION " . Wx::wxVERSION_STRING() );
+ 
+@@ -48,6 +49,7 @@ use_ok('Padre::TaskManager');
+ use_ok('Padre::TaskProcess');
+ use_ok('Padre::TaskWorker');
+ use_ok('Padre::Role::Task');
++}
+ 
+ # Now load everything else
+ my $loaded = Padre->import(':everything');
+@@ -70,3 +72,5 @@ foreach (
+ {
+ 	script_compiles("share/examples/wx/$_");
+ }
++
++done_testing ();
+-- 
+1.9.3
+
diff --git a/perl-Padre.spec b/perl-Padre.spec
index 7a8dc07..6186abd 100644
--- a/perl-Padre.spec
+++ b/perl-Padre.spec
@@ -2,7 +2,7 @@
 
 Name:           perl-Padre
 Version:        0.90
-Release:        13%{?dist}
+Release:        14%{?dist}
 Summary:        Perl Application Development and Refactoring Environment
 License:        GPL+ or Artistic
 Group:          Development/Libraries
@@ -13,6 +13,9 @@ Source1:        padre.desktop
 Patch0:         Padre-0.90-Migrating-to-the-delete_where-method-for-bulk-deleti.patch
 # Fix compatibility with Pod::Perldoc >= 3.21_01, bug #1083396
 Patch1:         Padre-0.90-No-exit-in-Pod-Perldoc.patch
+# Disable Test::NoWarnings t/01-load.t tests not to confuse with Padre's
+# intentional warning on perl 5.20, in Padre-1.02, bug #1141153
+Patch2:         Padre-0.90-Disable-Test-NoWarnings-t-01-load.t-tests.patch
 BuildArch:      noarch
 BuildRequires:  gettext
 BuildRequires:  desktop-file-utils
@@ -306,6 +309,7 @@ in a directory called .padre.
 %setup -q -n Padre-%{version}
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 find share/{examples,templates} -type f \( -name '*.pl' -o -name '*.t' \) \
     -exec chmod 755 {} +
@@ -387,6 +391,9 @@ mkdir "$HOME"
 
 
 %changelog
+* Mon Sep 15 2014 Petr Pisar <ppisar at redhat.com> - 0.90-14
+- Disable Test::NoWarnings tests in t/01-load.t (bug #1141153)
+
 * Fri Aug 29 2014 Jitka Plesnikova <jplesnik at redhat.com> - 0.90-13
 - Perl 5.20 rebuild
 



More information about the perl-devel mailing list