summaryrefslogtreecommitdiffstats
path: root/tests/exec.test
diff options
context:
space:
mode:
authorhobbs <hobbs>2004-07-02 23:37:31 (GMT)
committerhobbs <hobbs>2004-07-02 23:37:31 (GMT)
commit1d826f7a091358b6682334e46ca66daaa15ca5dc (patch)
treefe06028852dfb28f12402e1a8ec03ff9ee2d0e4d /tests/exec.test
parentfe6e887dda8e5c1821a94aaac732a37316a25d49 (diff)
downloadtcl-1d826f7a091358b6682334e46ca66daaa15ca5dc.zip
tcl-1d826f7a091358b6682334e46ca66daaa15ca5dc.tar.gz
tcl-1d826f7a091358b6682334e46ca66daaa15ca5dc.tar.bz2
* generic/tclPipe.c (TclCreatePipeline): Add 2>@1 as a special
* tests/exec.test: case redir of stderr to the result output.
Diffstat (limited to 'tests/exec.test')
-rw-r--r--tests/exec.test6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/exec.test b/tests/exec.test
index 2da0b7e..e5c9bf7 100644
--- a/tests/exec.test
+++ b/tests/exec.test
@@ -11,7 +11,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: exec.test,v 1.16.2.2 2004/02/25 23:38:16 dgp Exp $
+# RCS: @(#) $Id: exec.test,v 1.16.2.3 2004/07/02 23:37:31 hobbs Exp $
package require tcltest 2
namespace import -force ::tcltest::*
@@ -541,6 +541,10 @@ test exec-15.6 {standard error redirection} {exec stdio} {
>& "$path(gorp.file)" 2> "$path(gorp.file2)" | [interpreter] "$path(echo)" biz baz
list [exec [interpreter] "$path(cat)" "$path(gorp.file)"] [exec [interpreter] "$path(cat)" "$path(gorp.file2)"]
} {{biz baz} {foo bar}}
+test exec-15.7 {standard error redirection 2>@1} {exec stdio} {
+ # This redirects stderr output into normal result output from exec
+ exec [interpreter] "$path(sh)" -c "\"$path(echo)\" foo bar 1>&2" 2>@1
+} {foo bar}
test exec-16.1 {flush output before exec} {exec} {
set f [open $path(gorp.file) w]