diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2011-02-07 02:03:51 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2011-02-07 02:03:51 +0100 |
commit | 8ee2adab21328761b80e0cbc513eda7eaa880b24 (patch) | |
tree | c771696ab3b1be735e831b1721ab751c874e1cd3 /shell/ash_test | |
parent | b8ab4b038803df195eee9844c3597dd640c00393 (diff) | |
download | busybox-w32-8ee2adab21328761b80e0cbc513eda7eaa880b24.tar.gz busybox-w32-8ee2adab21328761b80e0cbc513eda7eaa880b24.tar.bz2 busybox-w32-8ee2adab21328761b80e0cbc513eda7eaa880b24.zip |
echo: do not retry on write errors
function old new delta
echo_main 297 336 +39
stpcpy - 22 +22
run_pipe 1561 1566 +5
pseudo_exec_argv 187 192 +5
hush_exit 75 80 +5
------------------------------------------------------------------------------
(add/remove: 3/0 grow/shrink: 4/0 up/down: 98/0) Total: 76 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/ash_test')
-rw-r--r-- | shell/ash_test/ash-misc/echo_write_error.right | 2 | ||||
-rw-r--r-- | shell/ash_test/ash-misc/echo_write_error.tests | 7 | ||||
-rw-r--r-- | shell/ash_test/ash-redir/redir.right | 1 |
3 files changed, 10 insertions, 0 deletions
diff --git a/shell/ash_test/ash-misc/echo_write_error.right b/shell/ash_test/ash-misc/echo_write_error.right new file mode 100644 index 000000000..3e91a13d3 --- /dev/null +++ b/shell/ash_test/ash-misc/echo_write_error.right | |||
@@ -0,0 +1,2 @@ | |||
1 | ash: write error: Broken pipe | ||
2 | Ok: 1 | ||
diff --git a/shell/ash_test/ash-misc/echo_write_error.tests b/shell/ash_test/ash-misc/echo_write_error.tests new file mode 100644 index 000000000..0a40c9ff7 --- /dev/null +++ b/shell/ash_test/ash-misc/echo_write_error.tests | |||
@@ -0,0 +1,7 @@ | |||
1 | trap "" PIPE | ||
2 | |||
3 | { | ||
4 | sleep 1 | ||
5 | echo Cant write this - get EPIPE | ||
6 | echo Ok: $? >&2 | ||
7 | } | { true; } | ||
diff --git a/shell/ash_test/ash-redir/redir.right b/shell/ash_test/ash-redir/redir.right index 2a02d41ce..c1a6e729a 100644 --- a/shell/ash_test/ash-redir/redir.right +++ b/shell/ash_test/ash-redir/redir.right | |||
@@ -1 +1,2 @@ | |||
1 | ash: write error: Bad file descriptor | ||
1 | TEST | 2 | TEST |