summaryrefslogtreecommitdiff
path: root/tests/rm/unreadable
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rm/unreadable')
-rwxr-xr-xtests/rm/unreadable9
1 files changed, 1 insertions, 8 deletions
diff --git a/tests/rm/unreadable b/tests/rm/unreadable
index e0fd93f9b..86c1a51ce 100755
--- a/tests/rm/unreadable
+++ b/tests/rm/unreadable
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/perl
# Test "rm" and unreadable directories.
# Copyright (C) 1998, 2003, 2005-2008 Free Software Foundation, Inc.
@@ -16,12 +16,6 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-: ${srcdir=.}
-. $top_srcdir/tests/require-perl
-
-me=`echo $0|sed 's,.*/,,'`
-exec $PERL -w -I$top_srcdir/tests -MCoreutils -M"CuTmpdir qw($me)" -- - <<\EOF
-require 5.003;
use strict;
(my $program_name = $0) =~ s|.*/||;
@@ -54,4 +48,3 @@ my $verbose = $ENV{VERBOSE};
my $fail = run_tests ($program_name, $prog, \@Tests, $save_temps, $verbose);
exit $fail;
-EOF