2006-12-30 Jim Meyering <jim@meyering.net>
+ * 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".
+
* tests/mv/acl (skip): Skip this test also if the destination
directory, which is on a different file system, lacks ACL support.
$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;
# 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>;
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";