diff options
author | Nicholas Clark <nick@ccl4.org> | 2013-06-19 21:39:39 +0200 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2013-07-01 11:13:03 +0200 |
commit | 463c96de11efb9662169e0bf06f1faf33464a4cf (patch) | |
tree | a577f91567a97ba3e8533ad2fac0636b64035590 /runtests.SH | |
parent | b1343c5992fbc6e183c4dd851533181a7d0c63c5 (diff) | |
download | perl-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-x | runtests.SH | 9 |
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 |