summaryrefslogtreecommitdiff
path: root/t/run
diff options
context:
space:
mode:
authorNeil Bowers <neilb@neilb.org>2022-03-16 23:48:22 +0000
committerPaul Evans <leonerd@leonerd.org.uk>2022-04-20 11:38:21 +0100
commitbfcf88c7f9d8c5fbd233765475864f15ad4cea2d (patch)
tree58bf74f98557654b73cb45cf190705ded839a644 /t/run
parent39f8eb4a21670e6b973dcfc86d0b1339064f5642 (diff)
downloadperl-bfcf88c7f9d8c5fbd233765475864f15ad4cea2d.tar.gz
changes to perl tests to handle perl without taint support
Diffstat (limited to 't/run')
-rw-r--r--t/run/runenv.t13
-rw-r--r--t/run/switcht.t6
2 files changed, 15 insertions, 4 deletions
diff --git a/t/run/runenv.t b/t/run/runenv.t
index a406fd3174..b32b4f20a9 100644
--- a/t/run/runenv.t
+++ b/t/run/runenv.t
@@ -123,10 +123,15 @@ try({PERL5OPT => '-w -w'},
'-w -w',
'');
-try({PERL5OPT => '-t'},
- ['-e', 'print ${^TAINT}'],
- '-1',
- '');
+SKIP: {
+ if (exists($Config{taint_support}) && !$Config{taint_support}) {
+ skip("built without taint support", 2);
+ }
+ try({PERL5OPT => '-t'},
+ ['-e', 'print ${^TAINT}'],
+ '-1',
+ '');
+}
try({PERL5OPT => '-W'},
['-I../lib','-e', 'local $^W = 0; no warnings; print $x'],
diff --git a/t/run/switcht.t b/t/run/switcht.t
index 01b9f2f623..533d8be992 100644
--- a/t/run/switcht.t
+++ b/t/run/switcht.t
@@ -6,6 +6,12 @@ BEGIN {
require './test.pl';
}
+use Config;
+
+if (exists($Config{taint_support}) && !$Config{taint_support}) {
+ skip_all("perl built without taint support");
+}
+
plan tests => 13;
my $Perl = which_perl();