summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2001-12-17 16:23:01 +0100
committerJarkko Hietaniemi <jhi@iki.fi>2001-12-17 18:38:33 +0000
commit1c4db469cd1e8fb8078f63d9771e14df964cc680 (patch)
tree77ffc105327ed21c5767507956765036a630f6d1 /t
parent1689481e5512794ca867be78f00013097fdd63c0 (diff)
downloadperl-1c4db469cd1e8fb8078f63d9771e14df964cc680.tar.gz
-t and the core tests; -t and PERL5OPT
Message-ID: <20011217152301.A704@rafael> p4raw-id: //depot/perl@13737
Diffstat (limited to 't')
-rw-r--r--t/run/runenv.t11
1 files changed, 8 insertions, 3 deletions
diff --git a/t/run/runenv.t b/t/run/runenv.t
index 55c48f03b3..236f84eabb 100644
--- a/t/run/runenv.t
+++ b/t/run/runenv.t
@@ -16,7 +16,7 @@ BEGIN {
use Test;
-plan tests => 10;
+plan tests => 11;
my $STDOUT = './results-0';
my $STDERR = './results-1';
@@ -24,7 +24,7 @@ my $PERL = './perl';
my $FAILURE_CODE = 119;
# Run perl with specified environment and arguments returns a list.
-# First element is true iff Perl's stdout and stderr match the
+# First element is true if Perl's stdout and stderr match the
# supplied $stdout and $stderr argument strings exactly.
# second element is an explanation of the failure
sub runperl {
@@ -79,7 +79,7 @@ sub try {
# PERL5OPT Command-line options (switches). Switches in
# this variable are taken as if they were on
-# every Perl command line. Only the -[DIMUdmw]
+# every Perl command line. Only the -[DIMUdmtw]
# switches are allowed. When running taint
# checks (because the program was running setuid
# or setgid, or the -T switch was used), this
@@ -140,6 +140,11 @@ try({PERL5OPT => '-w -w'},
'-w -w',
'');
+try({PERL5OPT => '-t'},
+ ['-e', 'print ${^TAINT}'],
+ '1',
+ '');
+
END {
1 while unlink $STDOUT;
1 while unlink $STDERR;