]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Avoid spurious test failure when SELinux stats "selinux/class".
authorJim Meyering <jim@meyering.net>
Thu, 27 Sep 2007 20:37:23 +0000 (22:37 +0200)
committerJim Meyering <jim@meyering.net>
Thu, 27 Sep 2007 20:37:33 +0000 (22:37 +0200)
* tests/ls/stat-free-symlinks: Grep for more precise /^stat("x"/.

ChangeLog
tests/ls/stat-free-symlinks

index d8bdd87279ee99045936556e7204a175b4cd3dc9..b63e919acd55394febdfdcef5d98cb3110f2873d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2007-09-27  Jim Meyering  <jim@meyering.net>
 
+       Avoid spurious test failure when SELinux stats "selinux/class".
+       * tests/ls/stat-free-symlinks: Grep for more precise /^stat("x"/.
+
        Move file-set and hash-triple modules to gnulib.
        * bootstrap.conf (gnulib_modules): Remove file-set, now that
        it's in gnulib, and the canonicalize module requires it there.
index 7c0fce927493213fb84e4206b6b026c65e59357c..7b36ba601020ba8b425240c2eeca6f7f45298353 100755 (executable)
@@ -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.
 {