summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2017-08-29 09:24:29 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2017-08-29 09:24:29 (GMT)
commit908e496e8fd9227aa05156e3e9f1f2801ce14e16 (patch)
tree14d64d94d7e2c57c6a5d0337b7da91d700c8cc32 /tests
parent3728831c291bc29f51ee826731bd206f28687d0d (diff)
downloadtcl-908e496e8fd9227aa05156e3e9f1f2801ce14e16.zip
tcl-908e496e8fd9227aa05156e3e9f1f2801ce14e16.tar.gz
tcl-908e496e8fd9227aa05156e3e9f1f2801ce14e16.tar.bz2
(cherry-pick): Fix [b50fb21410dababca95baa122964b2e312cb9d8a|b50fb214] : exec redirection to append stdout and stderr to the same file
Diffstat (limited to 'tests')
-rw-r--r--tests/exec.test8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/exec.test b/tests/exec.test
index 38927d3..5f3a0cb 100644
--- a/tests/exec.test
+++ b/tests/exec.test
@@ -671,8 +671,12 @@ test exec-19.1 {exec >> uses O_APPEND} -constraints {exec unix} -setup {
exec /bin/sh -c \
{for a in 1 2 3; do sleep 1; echo $a; done} >>$tmpfile &
exec /bin/sh -c \
+ {for a in 4 5 6; do sleep 1; echo $a >&2; done} 2>>$tmpfile &
+ exec /bin/sh -c \
{for a in a b c; do sleep 1; echo $a; done} >>$tmpfile &
- # The above two shell invokations take about 3 seconds to finish, so allow
+ exec /bin/sh -c \
+ {for a in d e f; do sleep 1; echo $a >&2; done} 2>>$tmpfile &
+ # The above four shell invokations take about 3 seconds to finish, so allow
# 5s (in case the machine is busy)
after 5000
# Check that no bytes have got lost through mixups with overlapping
@@ -681,7 +685,7 @@ test exec-19.1 {exec >> uses O_APPEND} -constraints {exec unix} -setup {
file size $tmpfile
} -cleanup {
removeFile $tmpfile
-} -result 14
+} -result 26
# Tests to ensure batch files and .CMD (Bug 9ece99d58b)
# can be executed on Windows