perl-Package-Stash-XS/Package-Stash-XS-0.17-no-Test-Requires.patch
Paul Howarth 4f3db6b0c1 Initial import of perl-Package-Stash-XS-0.17-2
This is a back-end for Package::Stash, which provides the functionality in a
way that's less buggy and much faster. It will be used by default if it's
installed, and should be preferred in all environments with a compiler.
2010-12-06 16:27:30 +00:00

27 lines
1018 B
Diff

diff -up Package-Stash-XS-0.17/t/20-leaks.t.orig Package-Stash-XS-0.17/t/20-leaks.t
--- Package-Stash-XS-0.17/t/20-leaks.t.orig 2010-11-17 12:13:08.000000000 +0000
+++ Package-Stash-XS-0.17/t/20-leaks.t 2010-11-17 12:13:36.937820610 +0000
@@ -4,7 +4,8 @@ use warnings;
use lib 't/lib';
use Test::More;
use Test::Fatal;
-use Test::Requires 'Test::LeakTrace';
+eval "use Test::LeakTrace";
+plan skip_all => "Test::LeakTrace required for this test" if $@;
use Package::Stash;
use Symbol;
diff -up Package-Stash-XS-0.17/t/21-leaks-debug.t.orig Package-Stash-XS-0.17/t/21-leaks-debug.t
--- Package-Stash-XS-0.17/t/21-leaks-debug.t.orig 2010-11-17 12:13:08.000000000 +0000
+++ Package-Stash-XS-0.17/t/21-leaks-debug.t 2010-11-17 12:13:50.722253597 +0000
@@ -4,7 +4,8 @@ use warnings;
use lib 't/lib';
use Test::More;
use Test::Fatal;
-use Test::Requires 'Test::LeakTrace';
+eval "use Test::LeakTrace";
+plan skip_all => "Test::LeakTrace required for this test" if $@;
BEGIN { $^P |= 0x210 } # PERLDBf_SUBLINE