Subject: | Tests fail under perl compiled with -DSILENT_NO_TAINT_SUPPORT |
t/taint.t assume that perl -T will turn on tainting, tainting is an optional feature of Perl, so it should be tested for.
The attached patch skips all the tests in this file if Config says that the Perl was compiled with no taint support.
Subject: | 0001-skip-taint.t-if-no-taint-support.patch |
From 1624ff54c0d81b107fd786b521b3882405d7e635 Mon Sep 17 00:00:00 2001
From: James Raspass <jraspass@gmail.com>
Date: Mon, 16 Feb 2015 12:50:28 +0000
Subject: [PATCH] skip taint.t if no taint support
---
t/taint.t | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/t/taint.t b/t/taint.t
index fd6e44c..75858c1 100644
--- a/t/taint.t
+++ b/t/taint.t
@@ -4,7 +4,9 @@
use warnings;
use strict;
-use Test::More tests => 5;
+use Config;
+use Test::More $Config{cppflags} =~ /-DSILENT_NO_TAINT_SUPPORT/
+ ? ( skip_all => 'No taint support' ) : ( tests => 5 );
BEGIN {
use_ok "Module::Runtime",
--
2.3.0