summaryrefslogtreecommitdiffstats
path: root/tests/chanio.test
diff options
context:
space:
mode:
authornijtmans <nijtmans>2009-11-19 21:17:36 (GMT)
committernijtmans <nijtmans>2009-11-19 21:17:36 (GMT)
commit1aaac758c94c12834f8bf77eadc30e212bc186f4 (patch)
tree17c64145a2321c7f3db5dff18b0042d1a861aa75 /tests/chanio.test
parent9d243a7d2ffa0988a6dc1316cecf69e776b75bae (diff)
downloadtcl-1aaac758c94c12834f8bf77eadc30e212bc186f4.zip
tcl-1aaac758c94c12834f8bf77eadc30e212bc186f4.tar.gz
tcl-1aaac758c94c12834f8bf77eadc30e212bc186f4.tar.bz2
Test-case for fixed [Bug 2849797]
Fix safe-10.1 and safe-10.4 test cases, making the wrong assumption that Tcltest should be a static package.
Diffstat (limited to 'tests/chanio.test')
-rw-r--r--tests/chanio.test10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/chanio.test b/tests/chanio.test
index df78461..729b436 100644
--- a/tests/chanio.test
+++ b/tests/chanio.test
@@ -13,7 +13,7 @@
# See the file "license.terms" for information on usage and redistribution of
# this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: chanio.test,v 1.21 2008/12/19 16:01:42 dgp Exp $
+# RCS: @(#) $Id: chanio.test,v 1.22 2009/11/19 21:17:36 nijtmans Exp $
if {[catch {package require tcltest 2}]} {
chan puts stderr "Skipping tests in [info script]. tcltest 2 required."
@@ -1571,8 +1571,8 @@ test chan-io-14.3 {Tcl_SetStdChannel & Tcl_GetStdChannel} {exec openpipe} {
out
} {err
}}
-# This test relies on the fact that the smallest available fd is used first.
-test chan-io-14.4 {Tcl_SetStdChannel & Tcl_GetStdChannel} {exec unix} {
+# This test relies on the fact that stdout is used before stderr.
+test chan-io-14.4 {Tcl_SetStdChannel & Tcl_GetStdChannel} {exec} {
set f [open $path(test1) w]
chan puts -nonewline $f { chan close stdin
chan close stdout
@@ -1597,8 +1597,8 @@ test chan-io-14.4 {Tcl_SetStdChannel & Tcl_GetStdChannel} {exec unix} {
chan close $f2
set result
} {{ chan close stdin
-file1
-} {file2
+stdout
+} {stderr
}}
catch {interp delete z}
test chan-io-14.5 {Tcl_GetChannel: stdio name translation} -setup {