summaryrefslogtreecommitdiff
path: root/t/comp
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/comp
parent39f8eb4a21670e6b973dcfc86d0b1339064f5642 (diff)
downloadperl-bfcf88c7f9d8c5fbd233765475864f15ad4cea2d.tar.gz
changes to perl tests to handle perl without taint support
Diffstat (limited to 't/comp')
-rw-r--r--t/comp/opsubs.t15
1 files changed, 8 insertions, 7 deletions
diff --git a/t/comp/opsubs.t b/t/comp/opsubs.t
index 89b1af517f..3636dcbb51 100644
--- a/t/comp/opsubs.t
+++ b/t/comp/opsubs.t
@@ -1,4 +1,4 @@
-#!./perl -Tw
+#!./perl -w
# Uncomment this for testing, but don't leave it in for "production", as
# we've not yet verified that use works.
@@ -147,12 +147,13 @@ is( &qw('amper'), "qw-amper", "&qw() is func" );
# qx operator
can_ok( 'main', "qx" );
-eval "qx('unqualified'".
- ($^O eq 'MSWin32' ? " 2>&1)" : ")");
-TODO: {
- local $::TODO = $^O eq 'MSWin32' ? "Tainting of PATH not working of Windows" : $::TODO;
- like( $@, qr/^Insecure/, "qx('unqualified') doesn't work" );
-}
+eval q{
+ BEGIN {
+ *CORE::GLOBAL::readpipe = sub { die "readpipe called" };
+ }
+ qx('unqualified');
+};
+like( $@, qr/^readpipe called/, "qx('unqualified') is oper" );
is( main::qx('main'), "qx-main", "main::qx() is func" );
is( &qx('amper'), "qx-amper", "&qx() is func" );