summaryrefslogtreecommitdiffstats
path: root/tests/defs.tcl
diff options
context:
space:
mode:
authorstanton <stanton>1999-05-25 20:40:54 (GMT)
committerstanton <stanton>1999-05-25 20:40:54 (GMT)
commita832d1a306d8da5f7dc70243e9d36cede2daa411 (patch)
treefa852789785f475f30f753c1ecb4264a09ccc049 /tests/defs.tcl
parentd466dd025d9277c76d252aa33273925903181697 (diff)
downloadtk-a832d1a306d8da5f7dc70243e9d36cede2daa411.zip
tk-a832d1a306d8da5f7dc70243e9d36cede2daa411.tar.gz
tk-a832d1a306d8da5f7dc70243e9d36cede2daa411.tar.bz2
First pass at Unicode support in X selection code.
Diffstat (limited to 'tests/defs.tcl')
-rw-r--r--tests/defs.tcl26
1 files changed, 12 insertions, 14 deletions
diff --git a/tests/defs.tcl b/tests/defs.tcl
index c582b52..245ec6a 100644
--- a/tests/defs.tcl
+++ b/tests/defs.tcl
@@ -11,7 +11,7 @@
# Copyright (c) 1998-1999 by Scriptics Corporation.
# All rights reserved.
#
-# RCS: @(#) $Id: defs.tcl,v 1.4 1999/04/20 19:20:03 hershey Exp $
+# RCS: @(#) $Id: defs.tcl,v 1.5 1999/05/25 20:40:54 stanton Exp $
# Initialize wish shell
@@ -980,22 +980,20 @@ if {[info exists tk_version]} {
cleanupbg
}
- # The following code segment cannot be run on Windows in Tk8.1b2
- # This bug is logged as a pipe bug (bugID 1495).
+ # The following code segment cannot be run on Windows prior
+ # to Tk 8.1b3 due to a channel I/O bug.
global tcl_platform
- if {$tcl_platform(platform) != "windows"} {
- set ::tcltest::fd [open "|[list $::tcltest::tktest -geometry +0+0 -name tktest] $args" r+]
- puts $::tcltest::fd "puts foo; flush stdout"
- flush $::tcltest::fd
- if {[gets $::tcltest::fd data] < 0} {
- error "unexpected EOF from \"$::tcltest::tktest\""
- }
- if {[string compare $data foo]} {
- error "unexpected output from background process \"$data\""
- }
- fileevent $::tcltest::fd readable bgReady
+ set ::tcltest::fd [open "|[list $::tcltest::tktest -geometry +0+0 -name tktest] $args" r+]
+ puts $::tcltest::fd "puts foo; flush stdout"
+ flush $::tcltest::fd
+ if {[gets $::tcltest::fd data] < 0} {
+ error "unexpected EOF from \"$::tcltest::tktest\""
+ }
+ if {[string compare $data foo]} {
+ error "unexpected output from background process \"$data\""
}
+ fileevent $::tcltest::fd readable bgReady
}
# Send a command to the background process, catching errors and