summaryrefslogtreecommitdiff
path: root/tests/rm
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2006-12-30 12:50:43 +0100
committerJim Meyering <jim@meyering.net>2006-12-30 12:50:43 +0100
commit5017d1b4e1879cf1cf644c02205eca3f2b18a947 (patch)
treed2a1672d6fa156aedb2f32b1f84bf5f572f20729 /tests/rm
parent841d9a7d5dad12c1b97bd26381d2ffe226ea57f9 (diff)
downloadcoreutils-5017d1b4e1879cf1cf644c02205eca3f2b18a947.tar.xz
* tests/rm/fail-eperm: Avoid spurious differences (the error function
from latest glibc no longer prints the full program_name): so don't invoke rm via ../../src/rm. Instead, invoke it via "PATH=../../src rm".
Diffstat (limited to 'tests/rm')
-rwxr-xr-xtests/rm/fail-eperm7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/rm/fail-eperm b/tests/rm/fail-eperm
index e2ce957eb..9bf0bfc05 100755
--- a/tests/rm/fail-eperm
+++ b/tests/rm/fail-eperm
@@ -59,7 +59,6 @@ delete @ENV{qw(BASH_ENV CDPATH ENV PATH)};
$ENV{IFS} = '';
my @dir_list = qw(/tmp /var/tmp /usr/tmp);
-my $rm = '../../src/rm';
# Find a directory with the sticky bit set.
my $found_dir;
@@ -96,8 +95,8 @@ foreach my $dir (@dir_list)
# Invoke rm on this file and ensure that we get the
# expected exit code and diagnostic.
- my $cmd = "$rm -f -- $target_file";
- open RM, "$cmd 2>&1 |"
+ my $cmd = "rm -f -- $target_file";
+ open RM, "PATH=../../src $cmd 2>&1 |"
or die "$ME: cannot execute `$cmd'\n";
my $line = <RM>;
@@ -118,7 +117,7 @@ foreach my $dir (@dir_list)
die "$ME: command `$cmd' died with signal $sig_num\n";
}
- my $exp = "$rm: cannot remove `$target_file':";
+ my $exp = "rm: cannot remove `$target_file':";
$line
or die "$ME: no output from `$cmd';\n"
. "expected something like `$exp ...'\n";