summaryrefslogtreecommitdiffstats
path: root/tests/chanio.test
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2010-02-07 08:03:11 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2010-02-07 08:03:11 (GMT)
commit307233f5f049dea251e0d858e301565c0ed88117 (patch)
treedab6cc90697541cd9172baa487925dcaf63bfa25 /tests/chanio.test
parenta7d5e487cdc90cf70ddff97143b7357800b9388d (diff)
downloadtcl-307233f5f049dea251e0d858e301565c0ed88117.zip
tcl-307233f5f049dea251e0d858e301565c0ed88117.tar.gz
tcl-307233f5f049dea251e0d858e301565c0ed88117.tar.bz2
Fix tests with known dependencies on hash iteration order.
Diffstat (limited to 'tests/chanio.test')
-rw-r--r--tests/chanio.test9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/chanio.test b/tests/chanio.test
index 729b436..c1dba49 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.22 2009/11/19 21:17:36 nijtmans Exp $
+# RCS: @(#) $Id: chanio.test,v 1.23 2010/02/07 08:03:11 dkf Exp $
if {[catch {package require tcltest 2}]} {
chan puts stderr "Skipping tests in [info script]. tcltest 2 required."
@@ -2115,8 +2115,9 @@ test chan-io-28.4 {Tcl_Chan Close} {testchannel} {
$consoleFileNames]
string compare $l $x
} 0
-test chan-io-28.5 {Tcl_Chan Close vs standard handles} {stdio unix testchannel openpipe} {
+test chan-io-28.5 {Tcl_Chan Close vs standard handles} -setup {
file delete $path(script)
+} -constraints {stdio unix testchannel openpipe} -body {
set f [open $path(script) w]
chan puts $f {
chan close stdin
@@ -2126,8 +2127,8 @@ test chan-io-28.5 {Tcl_Chan Close vs standard handles} {stdio unix testchannel o
set f [open "|[list [interpreter] $path(script)]" r]
set l [chan gets $f]
chan close $f
- set l
-} {file1 file2}
+ lsort $l
+} -result {file1 file2}
test chan-io-28.6 {Tcl_CloseEx (half-close) pipe} -setup {
set cat [makeFile {
fconfigure stdout -buffering line