perl-CGI/CGI-4.04-Make-Test-Deep-tests-optional.patch
2014-12-10 15:26:26 +01:00

40 lines
1.1 KiB
Diff

From 5d80235ee0c4faf77ba0dbb77c879200026d6b3d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
Date: Wed, 10 Dec 2014 14:24:17 +0100
Subject: [PATCH] Make Test::Deep tests optional
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: Petr Písař <ppisar@redhat.com>
---
t/request.t | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/t/request.t b/t/request.t
index f03fe02..a6d211d 100644
--- a/t/request.t
+++ b/t/request.t
@@ -4,7 +4,6 @@ use strict;
use warnings;
use Test::More tests => 44;
-use Test::Deep;
use CGI ();
use Config;
@@ -115,7 +114,9 @@ $q->_reset_globals;
is_deeply [ sort $q->$_( 'keywords' ) ], [ qw/ dragon tiger / ],
"$_ keywords" for qw/ param url_param /;
- {
+ SKIP: {
+ skip 'Test::Deep module is not available', 2 unless
+ eval 'use Test::Deep 0.11; 1';
# RT #54511. TODO: use Test::Warn / Test::Warnings / Test::NoWarnings
$^W++;
local $SIG{__WARN__} = sub { fail( "Got a warning: " . $_[0] ); };
--
1.9.3