Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion t/taint.t
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,13 @@ my $notaint = "";
my $notaint_str = "dan\x{5f3e}" . $notaint;
my $notaint_bin = encode('UTF-8', $notaint_str);
my @names = Encode->encodings(':all');
if (exists($Config{taint_support}) && not $Config{taint_support}) {

# $Config{taint_support} was added in 5.37.11
# the eval below won't fail if taint is not enabled
if ( $^V < v5.38 && eval { eval "# $ENV{PATH}"; 1 } ) {
plan skip_all => "your perl was built without taint support";
}
elsif (exists($Config{taint_support}) && not $Config{taint_support}) {
plan skip_all => "your perl was built without taint support";
}
else {
Expand Down