]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: work around spurious test failure with OpenBSD4.5's /bin/sh
authorJim Meyering <meyering@redhat.com>
Wed, 13 Jan 2010 09:53:32 +0000 (10:53 +0100)
committerJim Meyering <meyering@redhat.com>
Wed, 13 Jan 2010 09:55:55 +0000 (10:55 +0100)
* 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.

tests/ls/infloop

index 7d19b13d6d73f402d23ce3e77fb716900b2317c3..2ab486db1f7ff97d00afbc12c92391741170f482 100755 (executable)
@@ -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