summaryrefslogtreecommitdiffstats
path: root/tests/send.test
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2003-07-09 21:12:52 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2003-07-09 21:12:52 (GMT)
commitd685ce6ca2d0419b8f5db4d7138651ddc072b55b (patch)
tree62a5705f7df39e2294eeba65e7affc28557521dd /tests/send.test
parent1fdf00d0e343c441e50c00441a15f17acfe3a473 (diff)
downloadtk-d685ce6ca2d0419b8f5db4d7138651ddc072b55b.zip
tk-d685ce6ca2d0419b8f5db4d7138651ddc072b55b.tar.gz
tk-d685ce6ca2d0419b8f5db4d7138651ddc072b55b.tar.bz2
Stop xhost smash by the test suite; that can render a machine unusable.
Diffstat (limited to 'tests/send.test')
-rw-r--r--tests/send.test8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/send.test b/tests/send.test
index a40eb98..6a10323 100644
--- a/tests/send.test
+++ b/tests/send.test
@@ -10,7 +10,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: send.test,v 1.8 2002/07/14 05:48:46 dgp Exp $
+# RCS: @(#) $Id: send.test,v 1.8.2.1 2003/07/09 21:12:52 dkf Exp $
package require tcltest 2.1
namespace import -force tcltest::configure
@@ -156,7 +156,7 @@ test send-5.4 {ValidateName procedure} {secureserver testsend} {
winfo interps
} {test}
-if {[testConstraint xhost]} {
+if {[testConstraint nonPortable] && [testConstraint xhost]} {
winfo interps
tk appname tktest
update
@@ -171,12 +171,12 @@ test send-6.1 {ServerSecure procedure} {nonPortable secureserver} {
set a 44
list [dobg [list send [tk appname] set a 55]] $a
} {55 55}
-test send-6.2 {ServerSecure procedure} {nonPortable secureserver} {
+test send-6.2 {ServerSecure procedure} {nonPortable secureserver xhost} {
set a 22
exec xhost [exec hostname]
list [catch {dobg [list send [tk appname] set a 33]} msg] $a $msg
} {0 22 {X server insecure (must use xauth-style authorization); command ignored}}
-test send-6.3 {ServerSecure procedure} {nonPortable secureserver} {
+test send-6.3 {ServerSecure procedure} {nonPortable secureserver xhost} {
set a abc
exec xhost - [exec hostname]
list [dobg [list send [tk appname] set a new]] $a