summaryrefslogtreecommitdiff
path: root/tests/rm
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rm')
-rwxr-xr-xtests/rm/empty-name5
-rwxr-xr-xtests/rm/fail-eperm5
-rwxr-xr-xtests/rm/unreadable5
3 files changed, 3 insertions, 12 deletions
diff --git a/tests/rm/empty-name b/tests/rm/empty-name
index 1384a2fd1..a250985c9 100755
--- a/tests/rm/empty-name
+++ b/tests/rm/empty-name
@@ -21,11 +21,8 @@
# actually remove files with names of entries in the current directory
# but relative to `/' rather than relative to the current directory.
-: ${PERL=perl}
: ${srcdir=.}
-
-$PERL -e 'use warnings;' > /dev/null 2>&1 ||
- skip_test_ "configure didn't find a usable version of Perl"
+. $srcdir/../require-perl
me=`echo $0|sed 's,.*/,,'`
exec $PERL -w -I$srcdir/.. -MCoreutils -M"CuTmpdir qw($me)" -- - << \EOF
diff --git a/tests/rm/fail-eperm b/tests/rm/fail-eperm
index c619574ce..4abc9dec6 100755
--- a/tests/rm/fail-eperm
+++ b/tests/rm/fail-eperm
@@ -29,11 +29,8 @@ fi
PRIV_CHECK_ARG=require-non-root . $srcdir/../priv-check
-: ${PERL=perl}
: ${srcdir=.}
-
-$PERL -e 1 > /dev/null 2>&1 ||
- skip_test_ "configure didn't find a usable version of Perl"
+. $srcdir/../require-perl
ARGV_0=$0
export ARGV_0
diff --git a/tests/rm/unreadable b/tests/rm/unreadable
index 05024c2dc..4fb40235c 100755
--- a/tests/rm/unreadable
+++ b/tests/rm/unreadable
@@ -16,11 +16,8 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-: ${PERL=perl}
: ${srcdir=.}
-
-$PERL -e 'use warnings;' > /dev/null 2>&1 ||
- skip_test_ "configure didn't find a usable version of Perl"
+. $srcdir/../require-perl
me=`echo $0|sed 's,.*/,,'`
exec $PERL -w -I$srcdir/.. -MCoreutils -M"CuTmpdir qw($me)" -- - << \EOF