diff options
author | Jim Meyering <meyering@redhat.com> | 2010-01-13 10:53:32 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2010-01-13 10:55:55 +0100 |
commit | f28c7d959be30be0b216880878e8b0909d810a18 (patch) | |
tree | b27d4a3efe935ae9fe291c217dee39cd8b7e0c7f /tests | |
parent | 3b498ba1410d9730782db439db27e85ff20d0e56 (diff) | |
download | coreutils-f28c7d959be30be0b216880878e8b0909d810a18.tar.xz |
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.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/ls/infloop | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/ls/infloop b/tests/ls/infloop index 7d19b13d6..2ab486db1 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 |