Skip to content

Commit

Permalink
tests: fix a false positive for 32 bit on 64 bit hosts
Browse files Browse the repository at this point in the history
* tests/ls/stat-free-symlinks: strace currently outputs an
informational message about arch difference to stdout.
Therefore we need to strip that before comparison.
  • Loading branch information
nickalcock authored and pixelb committed Nov 1, 2010
1 parent 30e207f commit 272f8bf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/ls/stat-free-symlinks
Original file line number Diff line number Diff line change
Expand Up @@ -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".
Expand Down

0 comments on commit 272f8bf

Please sign in to comment.