summaryrefslogtreecommitdiffstats
path: root/tests/select.test
diff options
context:
space:
mode:
authordgp <dgp@noemail.net>2003-11-18 01:47:50 (GMT)
committerdgp <dgp@noemail.net>2003-11-18 01:47:50 (GMT)
commit3d9e96b1a4f16eb9439a4f83d603f7634dac19bf (patch)
tree87283d3114d5077cccedd07ffb74ffd8ef04e703 /tests/select.test
parent1849faa84c9662e6ef984e22e4d8206dc29e4c1b (diff)
downloadtk-3d9e96b1a4f16eb9439a4f83d603f7634dac19bf.zip
tk-3d9e96b1a4f16eb9439a4f83d603f7634dac19bf.tar.gz
tk-3d9e96b1a4f16eb9439a4f83d603f7634dac19bf.tar.bz2
* tests/constraints.tcl:When running the test suite in a process
* tests/image.test: where Tk has been [load]ed, there's no * tests/select.test: guarantee that child processes created by * tests/unixWm.test: [exec [interpreter]] will have Tk in them. * tests/window.test: Made modifications to force a [load] of Tk in those situations. FossilOrigin-Name: cda2e66757f876250dc3756cb11869aca95de027
Diffstat (limited to 'tests/select.test')
-rw-r--r--tests/select.test10
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/select.test b/tests/select.test
index db401b7..04adc6b 100644
--- a/tests/select.test
+++ b/tests/select.test
@@ -6,7 +6,7 @@
# Copyright (c) 1998-1999 by Scriptics Corporation.
# All rights reserved.
#
-# RCS: @(#) $Id: select.test,v 1.10 2003/04/01 21:06:51 dgp Exp $
+# RCS: @(#) $Id: select.test,v 1.11 2003/11/18 01:47:51 dgp Exp $
#
# Note: Multiple display selection handling will only be tested if the
@@ -17,6 +17,8 @@ package require tcltest 2.1
eval tcltest::configure $argv
tcltest::loadTestedCommands
+namespace import -force ::tk::test:loadTkCommand
+
global longValue selValue selInfo
set selValue {}
@@ -856,7 +858,7 @@ test select-10.1 {ConvertSelection procedure, race with selection clear} {unixOn
lappend x [gets $fd]
}
set fd [open "|[list [interpreter] -geometry +0+0 -name tktest]" r+]
- puts $fd "puts foo; flush stdout"
+ puts $fd "puts foo; [loadTkCommand]; flush stdout"
flush $fd
gets $fd
fileevent $fd readable [list Ready $fd]
@@ -872,7 +874,9 @@ test select-10.1 {ConvertSelection procedure, race with selection clear} {unixOn
vwait [namespace which -variable x]
puts $fd {exit}
flush $fd
- close $fd
+ # Don't understand why, but the [loadTkCommand] above causes
+ # a "broken pipe" error when Tk was actually [load]ed in the child.
+ catch {close $fd}
lappend x $selInfo
} {{1 PRIMARY selection doesn't exist or form "STRING" not defined} {}}
test select-10.2 {ConvertSelection procedure} {unixOnly} {