r75300 - in /trunk/libtest-spec-perl/debian: control patches/fix-mocks_imports-test.patch patches/series

ghedo-guest at users.alioth.debian.org ghedo-guest at users.alioth.debian.org
Thu Jun 9 16:11:12 UTC 2011


Author: ghedo-guest
Date: Thu Jun  9 16:10:44 2011
New Revision: 75300

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=75300
Log:
use patch from upstream to fix mocks_imports test

Added:
    trunk/libtest-spec-perl/debian/patches/fix-mocks_imports-test.patch
Modified:
    trunk/libtest-spec-perl/debian/control
    trunk/libtest-spec-perl/debian/patches/series

Modified: trunk/libtest-spec-perl/debian/control
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtest-spec-perl/debian/control?rev=75300&op=diff
==============================================================================
--- trunk/libtest-spec-perl/debian/control (original)
+++ trunk/libtest-spec-perl/debian/control Thu Jun  9 16:10:44 2011
@@ -3,7 +3,6 @@
 Priority: optional
 Build-Depends: debhelper (>= 8)
 Build-Depends-Indep: perl,
- libmoose-perl,
  libpackage-stash-perl (>= 0.23),
  libtest-deep-perl,
  libtest-trap-perl,

Added: trunk/libtest-spec-perl/debian/patches/fix-mocks_imports-test.patch
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtest-spec-perl/debian/patches/fix-mocks_imports-test.patch?rev=75300&op=file
==============================================================================
--- trunk/libtest-spec-perl/debian/patches/fix-mocks_imports-test.patch (added)
+++ trunk/libtest-spec-perl/debian/patches/fix-mocks_imports-test.patch Thu Jun  9 16:10:44 2011
@@ -1,0 +1,28 @@
+From 37ddc5af6528fa04626e3034d6181813749d1061 Mon Sep 17 00:00:00 2001
+From: Philip Garrett <philip.garrett at icainformatics.com>
+Date: Thu, 9 Jun 2011 11:36:10 -0400
+Subject: [PATCH] Replaced "defined(&foo)" with "defined(&{'foo'})" to
+ guarantee very late binding, which is required to test this
+ with the pure-perl version of Package::Stash. (issue #8)
+
+Origin: upstream https://github.com/kingpong/perl-Test-Spec/commit/37ddc5af6
+---
+ t/mocks_imports.t |    2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/t/mocks_imports.t b/t/mocks_imports.t
+index 90784b8..711b78b 100755
+--- a/t/mocks_imports.t
++++ b/t/mocks_imports.t
+@@ -31,7 +31,7 @@ describe "Test::Spec::Mocks" => sub {
+       package A;
+       require Test::Spec::Mocks;
+     }
+-    ok(!defined(&UNIVERSAL::stubs) && !defined(&A::stubs));
++    ok(!defined(&{"UNIVERSAL::stubs"}) && !defined(&{"A::stubs"}));
+   };
+
+   it "should export &stubs into UNIVERSAL" => sub {
+--
+1.7.5.3
+

Modified: trunk/libtest-spec-perl/debian/patches/series
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtest-spec-perl/debian/patches/series?rev=75300&op=diff
==============================================================================
--- trunk/libtest-spec-perl/debian/patches/series (original)
+++ trunk/libtest-spec-perl/debian/patches/series Thu Jun  9 16:10:44 2011
@@ -1,1 +1,2 @@
 fix-pod-error.patch
+fix-mocks_imports-test.patch




More information about the Pkg-perl-cvs-commits mailing list