1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-02-16 04:12:26 +02:00

tests: fix a false positive for 32 bit on 64 bit hosts

* tests/ls/stat-free-symlinks: strace currently outputs an
informational message about arch difference to stdout.
Therefore we need to strip that before comparison.
This commit is contained in:
Nix
2010-11-01 15:46:01 +00:00
committed by Pádraig Brady
parent 30e207fa46
commit 272f8bf0ac

View File

@@ -36,7 +36,10 @@ ln -s x link-to-x || framework_failure
# symlink and an executable file properly.
LS_COLORS='or=0:mi=0:ex=01;32:ln=01;35' \
strace -qe stat ls -F --color=always x link-to-x > out 2> err || fail=1
strace -qe stat ls -F --color=always x link-to-x > out.tmp 2> err || fail
# Elide info messages strace can send to stdout of the form:
# [ Process PID=1234 runs in 32 bit mode. ]
sed '/Process PID=/d' out.tmp > out
# With coreutils 6.9 and earlier, this file would contain a
# line showing ls had called stat on "x".