diff options
author | Jim Meyering <jim@meyering.net> | 2004-11-14 11:08:22 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2004-11-14 11:08:22 +0000 |
commit | 484dcf41331e9e7df3833d3a3121c77db4bb6447 (patch) | |
tree | 2ca0970bfc223dead5e194ee7532a621707ce56d /tests/misc/close-stdout | |
parent | 99c79f5adcf23662698b8b7f46df7be4f1aeb246 (diff) | |
download | coreutils-484dcf41331e9e7df3833d3a3121c77db4bb6447.tar.xz |
*** empty log message ***
Diffstat (limited to 'tests/misc/close-stdout')
-rwxr-xr-x | tests/misc/close-stdout | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/misc/close-stdout b/tests/misc/close-stdout index 4bdbbcb1d..c70b7fc54 100755 --- a/tests/misc/close-stdout +++ b/tests/misc/close-stdout @@ -26,7 +26,8 @@ export PATH fail=0 -# Ensure these exit successfully, even though stdout is closed. +# Ensure these exit successfully, even though stdout is closed, +# because they generate no output. touch a cp a b >&- || fail=1 test -f b || fail=1 @@ -41,7 +42,8 @@ sleep 0 >&- || fail=1 $pwd/../../src/true >&- || fail=1 $pwd/../../src/printf '' >&- || fail=1 -# Ensure these fail, because stdout is closed. +# Ensure these fail, because stdout is closed and they *do* +# generate output. $pwd/../../src/printf 'foo' >&- 2>/dev/null && fail=1 cp --verbose a b >&- 2>/dev/null && fail=1 |