summaryrefslogtreecommitdiff
path: root/tests/ls
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2007-09-27 22:37:23 +0200
committerJim Meyering <jim@meyering.net>2007-09-27 22:37:33 +0200
commit5b0e90427261d1614da012dbd164ad446f403b46 (patch)
tree7b988406b549de653617ba9dad789f39f7c69f60 /tests/ls
parent491c54ca99717339656509111012e88a6e3def84 (diff)
downloadcoreutils-5b0e90427261d1614da012dbd164ad446f403b46.tar.xz
Avoid spurious test failure when SELinux stats "selinux/class".
* tests/ls/stat-free-symlinks: Grep for more precise /^stat("x"/.
Diffstat (limited to 'tests/ls')
-rwxr-xr-xtests/ls/stat-free-symlinks2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ls/stat-free-symlinks b/tests/ls/stat-free-symlinks
index 7c0fce927..7b36ba601 100755
--- a/tests/ls/stat-free-symlinks
+++ b/tests/ls/stat-free-symlinks
@@ -41,7 +41,7 @@ LS_COLORS='or=0:mi=0:ex=01;32:ln=01;35' \
# With coreutils 6.9 and earlier, this file would contain a
# line showing ls had called stat on "x".
-test -s err && fail=1
+grep '^stat("x"' err && fail=1
# Check that output is colorized, as requested, too.
{