summaryrefslogtreecommitdiff
path: root/runtests.SH
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2013-06-19 21:39:39 +0200
committerNicholas Clark <nick@ccl4.org>2013-07-01 11:13:03 +0200
commit463c96de11efb9662169e0bf06f1faf33464a4cf (patch)
treea577f91567a97ba3e8533ad2fac0636b64035590 /runtests.SH
parentb1343c5992fbc6e183c4dd851533181a7d0c63c5 (diff)
downloadperl-463c96de11efb9662169e0bf06f1faf33464a4cf.tar.gz
We don't actually need to set $ENV{PERL} for the tests to work.
Whatever the executable is named at the top level, it's always symlinked as ./perl in t, so there's no need to set an environment variable to override the expected name.
Diffstat (limited to 'runtests.SH')
-rwxr-xr-xruntests.SH9
1 files changed, 2 insertions, 7 deletions
diff --git a/runtests.SH b/runtests.SH
index 24e1ffaf34..304b7195e8 100755
--- a/runtests.SH
+++ b/runtests.SH
@@ -54,19 +54,14 @@ if test X"\$TESTFILE" = X; then
TESTFILE=TEST
fi
-if test X"\$PERL" = X; then
- PERL=./perl$_exe
- export PERL
-fi
-
cd t
# The second branch is for testing without a tty or controlling terminal,
# see t/op/stat.t
if test \$tty = Y; then
- \$PERL \$TESTFILE \$TEST_ARGS \$TEST_FILES </dev/tty
+ ./perl$_exe \$TESTFILE \$TEST_ARGS \$TEST_FILES </dev/tty
else
- PERL_SKIP_TTY_TEST=1 \$PERL \$TESTFILE \$TEST_ARGS \$TEST_FILES
+ PERL_SKIP_TTY_TEST=1 ./perl$_exe \$TESTFILE \$TEST_ARGS \$TEST_FILES
fi
echo "Ran tests" > rantests