From: Jim Meyering Date: Thu, 27 Sep 2007 20:37:23 +0000 (+0200) Subject: Avoid spurious test failure when SELinux stats "selinux/class". X-Git-Tag: v6.9.89~92 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b0e90427261d1614da012dbd164ad446f403b46;p=thirdparty%2Fcoreutils.git Avoid spurious test failure when SELinux stats "selinux/class". * tests/ls/stat-free-symlinks: Grep for more precise /^stat("x"/. --- diff --git a/ChangeLog b/ChangeLog index d8bdd87279..b63e919acd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2007-09-27 Jim Meyering + 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. diff --git a/tests/ls/stat-free-symlinks b/tests/ls/stat-free-symlinks index 7c0fce9274..7b36ba6010 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. {