]> git.ipfire.org Git - thirdparty/coreutils.git/commit
tests: avoid FP of ls/stat-free-color.sh with newer glibc
authorBernhard Voelker <mail@bernhard-voelker.de>
Sun, 30 Aug 2015 20:49:35 +0000 (22:49 +0200)
committerBernhard Voelker <mail@bernhard-voelker.de>
Sun, 30 Aug 2015 20:49:35 +0000 (22:49 +0200)
commitfd5f2b1569e2e0b31be755e14e236a7a02478fc0
treea32a9b91784c4feffbe40177896cd1543255e300
parentda5505dd7f7324a60f72ab472fa69b0d8fb2cd6d
tests: avoid FP of ls/stat-free-color.sh with newer glibc

Since glibc-2.22, specifically commit [0], the opendir() implementation
implicitly makes an additional stat call thus leading to a FP.
Seen on openSUSE:Tumbleweed since snapshot 20150821.

[0]
https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=46f894d8c60a

* tests/ls/stat-free-color.sh: Change the test to verify that ls(1)
needs the same number of stat-like calls for a single, empty directory
argument as for one with a few directory entries (sub-directory,
regular file, symlink, etc.).
tests/ls/stat-free-color.sh