Fix CGI-4.04-Make-Test-Deep-tests-optional.patch

This commit is contained in:
Petr Písař 2014-12-10 15:26:26 +01:00
parent 0d04b2ade9
commit 376f226b8f

View File

@ -1,4 +1,4 @@
From 307aaf983944b09e62697e1195dee7140852c330 Mon Sep 17 00:00:00 2001
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
@ -12,7 +12,7 @@ Signed-off-by: Petr Písař <ppisar@redhat.com>
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/t/request.t b/t/request.t
index f03fe02..3e88226 100644
index f03fe02..a6d211d 100644
--- a/t/request.t
+++ b/t/request.t
@@ -4,7 +4,6 @@ use strict;
@ -30,7 +30,7 @@ index f03fe02..3e88226 100644
- {
+ SKIP: {
+ skip 'Test::Deep module is not available', 2 unless
+ eval 'use Test::Deep 0.11';
+ 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] ); };