summaryrefslogtreecommitdiff
path: root/tests/rm/empty-name
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rm/empty-name')
-rwxr-xr-xtests/rm/empty-name10
1 files changed, 1 insertions, 9 deletions
diff --git a/tests/rm/empty-name b/tests/rm/empty-name
index d940d01fa..31d08842e 100755
--- a/tests/rm/empty-name
+++ b/tests/rm/empty-name
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/perl
# Make sure that rm -r '' fails.
# Copyright (C) 1998, 2003, 2005, 2007-2008 Free Software Foundation, Inc.
@@ -16,17 +16,10 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
# On SunOS 4.1.3, running rm -r '' in a nonempty directory may
# actually remove files with names of entries in the current directory
# but relative to `/' rather than relative to the current directory.
-: ${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|.*/||;
@@ -49,4 +42,3 @@ my $verbose = $ENV{VERBOSE};
my $fail = run_tests ($program_name, $prog, \@Tests, $save_temps, $verbose);
exit $fail;
-EOF