From: Jim Meyering Date: Wed, 13 Jan 2010 09:53:32 +0000 (+0100) Subject: tests: work around spurious test failure with OpenBSD4.5's /bin/sh X-Git-Tag: v8.4~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f28c7d959be30be0b216880878e8b0909d810a18;p=thirdparty%2Fcoreutils.git tests: work around spurious test failure with OpenBSD4.5's /bin/sh * tests/ls/infloop: OpenBSD4.5's /bin/sh would mistakenly include "set -x"-output in an application's stderr stream when stderr is redirected before stdout. This was causing one spurious test failure. The work-around: redirect stdout first. Reported by Nelson Beebe. --- diff --git a/tests/ls/infloop b/tests/ls/infloop index 7d19b13d6d..2ab486db1f 100755 --- a/tests/ls/infloop +++ b/tests/ls/infloop @@ -36,8 +36,7 @@ cat <<\EOF > exp-err || framework_failure ls: loop/sub: not listing already-listed directory EOF - -timeout 1 ls -RL loop 2>err > out +timeout 1 ls -RL loop >out 2>err # Ensure that ls exits with status 2 upon detecting a cycle test $? = 2 || fail=1