summaryrefslogtreecommitdiff
path: root/tests/misc/mktemp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/misc/mktemp')
-rwxr-xr-xtests/misc/mktemp8
1 files changed, 1 insertions, 7 deletions
diff --git a/tests/misc/mktemp b/tests/misc/mktemp
index ed4b3c2bf..affb0d17c 100755
--- a/tests/misc/mktemp
+++ b/tests/misc/mktemp
@@ -18,14 +18,8 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
# 02110-1301, USA.
-: ${PERL=perl}
: ${srcdir=.}
-
-$PERL -e 'use warnings;' > /dev/null 2>&1 || {
- echo 1>&2 "$0: configure didn't find a usable version of Perl," \
- "so can't run this test"
- exit 77
-}
+. $srcdir/../require-perl
me=`echo $0|sed 's,.*/,,'`
exec $PERL -w -I$srcdir/.. -MCoreutils -M"CuTmpdir qw($me)" -- - <<\EOF