summaryrefslogtreecommitdiff
path: root/t/TEST
diff options
context:
space:
mode:
authorJim Cromie <jim.cromie@gmail.com>2012-10-19 13:22:39 -0600
committerJarkko Hietaniemi <jhi@iki.fi>2014-11-06 20:51:37 -0500
commitda6e3e61d3d3194e7f769b7ddf7e6d16904c24d3 (patch)
tree46da14142216f7bc80b9f6fcb9ad7d2dd484b7d8 /t/TEST
parentc93d2ba175ebe959d6fdb513561bf8dc33389a8b (diff)
downloadperl-da6e3e61d3d3194e7f769b7ddf7e6d16904c24d3.tar.gz
t/TEST: add -w to shebang, fix a used-once warning
Adding -w should be ok, despite peculiar code style; it avoids require, unlike "use strict". Added risk of perl brokenness seems vanishingly small. Fix one used-once warning thus exposed, and one test in FileHandle.t surprised by t/TEST's new '-w' in the shebang.
Diffstat (limited to 't/TEST')
-rwxr-xr-xt/TEST4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/TEST b/t/TEST
index 9772490d6f..15d59b7194 100755
--- a/t/TEST
+++ b/t/TEST
@@ -1,4 +1,4 @@
-#!./perl
+#!./perl -w
# This is written in a peculiar style, since we're trying to avoid
# most of the constructs we'll be testing for. (This comment is
@@ -108,7 +108,7 @@ my %skip = (
);
-if ($::do_nothing) {
+if ($::do_nothing || $::do_nothing) { # set by harness b4 requiring us
return 1;
}