summaryrefslogtreecommitdiffstats
path: root/tests/winDde.test
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2004-06-23 15:36:52 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2004-06-23 15:36:52 (GMT)
commit917f6e364bb4aaeed6b6e109ce16525d58091193 (patch)
tree62ce3a9ba3ee31456f0967b7e5e3c7b35c33dd5e /tests/winDde.test
parent5ce4f325726f9d4a32b7499cc8a0ff0d81a2dc48 (diff)
downloadtcl-917f6e364bb4aaeed6b6e109ce16525d58091193.zip
tcl-917f6e364bb4aaeed6b6e109ce16525d58091193.tar.gz
tcl-917f6e364bb4aaeed6b6e109ce16525d58091193.tar.bz2
Standardize some use of test constraints onto names that are documented
Diffstat (limited to 'tests/winDde.test')
-rw-r--r--tests/winDde.test88
1 files changed, 44 insertions, 44 deletions
diff --git a/tests/winDde.test b/tests/winDde.test
index 850d839..59ab841 100644
--- a/tests/winDde.test
+++ b/tests/winDde.test
@@ -9,7 +9,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: winDde.test,v 1.20 2004/05/19 20:15:32 dkf Exp $
+# RCS: @(#) $Id: winDde.test,v 1.21 2004/06/23 15:36:58 dkf Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2
@@ -112,49 +112,49 @@ proc createChildProcess { ddeServerName {handler {}}} {
# -------------------------------------------------------------------------
-test winDde-1.1 {Settings the server's topic name} {pcOnly dde} {
+test winDde-1.1 {Settings the server's topic name} {win dde} {
list [dde servername foobar] [dde servername] [dde servername self]
} {foobar foobar self}
-test winDde-2.1 {Checking for other services} {pcOnly dde} {
+test winDde-2.1 {Checking for other services} {win dde} {
expr [llength [dde services {} {}]] >= 0
} 1
test winDde-2.2 {Checking for existence, with service and topic specified} \
- {pcOnly dde} {
+ {win dde} {
llength [dde services TclEval self]
} 1
test winDde-2.3 {Checking for existence, with only the service specified} \
- {pcOnly dde} {
+ {win dde} {
expr [llength [dde services TclEval {}]] >= 1
} 1
test winDde-2.4 {Checking for existence, with only the topic specified} \
- {pcOnly dde} {
+ {win dde} {
expr [llength [dde services {} self]] >= 1
} 1
# -------------------------------------------------------------------------
-test winDde-3.1 {DDE execute locally} {pcOnly dde} {
+test winDde-3.1 {DDE execute locally} {win dde} {
set a ""
dde execute TclEval self {set a "foo"}
set a
} foo
-test winDde-3.2 {DDE execute -async locally} {pcOnly dde} {
+test winDde-3.2 {DDE execute -async locally} {win dde} {
set a ""
dde execute -async TclEval self {set a "foo"}
update
set a
} foo
-test winDde-3.3 {DDE request locally} {pcOnly dde} {
+test winDde-3.3 {DDE request locally} {win dde} {
set a ""
dde execute TclEval self {set a "foo"}
dde request TclEval self a
} foo
-test winDde-3.4 {DDE eval locally} {pcOnly dde} {
+test winDde-3.4 {DDE eval locally} {win dde} {
set a ""
dde eval self set a "foo"
} foo
-test winDde-3.5 {DDE request locally} {pcOnly dde} {
+test winDde-3.5 {DDE request locally} {win dde} {
set a ""
dde execute TclEval self {set a "foo"}
dde request -binary TclEval self a
@@ -162,7 +162,7 @@ test winDde-3.5 {DDE request locally} {pcOnly dde} {
# -------------------------------------------------------------------------
-test winDde-4.1 {DDE execute remotely} {stdio pcOnly dde} {
+test winDde-4.1 {DDE execute remotely} {stdio win dde} {
set a ""
set name child-4.1
set child [createChildProcess $name]
@@ -171,7 +171,7 @@ test winDde-4.1 {DDE execute remotely} {stdio pcOnly dde} {
update
set a
} ""
-test winDde-4.2 {DDE execute async remotely} {stdio pcOnly dde} {
+test winDde-4.2 {DDE execute async remotely} {stdio win dde} {
set a ""
set name child-4.2
set child [createChildProcess $name]
@@ -180,7 +180,7 @@ test winDde-4.2 {DDE execute async remotely} {stdio pcOnly dde} {
update
set a
} ""
-test winDde-4.3 {DDE request remotely} {stdio pcOnly dde} {
+test winDde-4.3 {DDE request remotely} {stdio win dde} {
set a ""
set name chile-4.3
set child [createChildProcess $name]
@@ -190,7 +190,7 @@ test winDde-4.3 {DDE request remotely} {stdio pcOnly dde} {
update
set a
} foo
-test winDde-4.4 {DDE eval remotely} {stdio pcOnly dde} {
+test winDde-4.4 {DDE eval remotely} {stdio win dde} {
set a ""
set name child-4.4
set child [createChildProcess $name]
@@ -202,37 +202,37 @@ test winDde-4.4 {DDE eval remotely} {stdio pcOnly dde} {
# -------------------------------------------------------------------------
-test winDde-5.1 {check for bad arguments} {pcOnly dde} {
+test winDde-5.1 {check for bad arguments} {win dde} {
catch {dde execute "" "" "" ""} result
set result
} {wrong # args: should be "dde execute ?-async? serviceName topicName value"}
-test winDde-5.2 {check for bad arguments} {pcOnly dde} {
+test winDde-5.2 {check for bad arguments} {win dde} {
catch {dde execute "" "" ""} result
set result
} {cannot execute null data}
-test winDde-5.3 {check for bad arguments} {pcOnly dde} {
+test winDde-5.3 {check for bad arguments} {win dde} {
catch {dde execute -foo "" "" ""} result
set result
} {wrong # args: should be "dde execute ?-async? serviceName topicName value"}
-test winDde-5.4 {DDE eval bad arguments} {pcOnly dde} {
+test winDde-5.4 {DDE eval bad arguments} {win dde} {
list [catch {dde eval "" "foo"} msg] $msg
} {1 {invalid service name ""}}
# -------------------------------------------------------------------------
-test winDde-6.1 {DDE servername bad arguments} -constraints {pcOnly dde} -body {
+test winDde-6.1 {DDE servername bad arguments} -constraints {win dde} -body {
dde servername -z -z -z
} -returnCodes error -result {wrong # args: should be "dde servername ?-force? ?-handler proc? ?--? ?serverName?"}
-test winDde-6.2 {DDE servername set name} -constraints {pcOnly dde} \
+test winDde-6.2 {DDE servername set name} -constraints {win dde} \
-body {dde servername -- winDde-6.2} \
-result {winDde-6.2}
-test winDde-6.3 {DDE servername set exact name} -constraints {pcOnly dde} \
+test winDde-6.3 {DDE servername set exact name} -constraints {win dde} \
-body {dde servername -force winDde-6.3} \
-result {winDde-6.3}
-test winDde-6.4 {DDE servername set exact name} -constraints {pcOnly dde} \
+test winDde-6.4 {DDE servername set exact name} -constraints {win dde} \
-body {dde servername -force -- winDde-6.4} \
-result {winDde-6.4}
-test winDde-6.5 {DDE remote servername collision} -constraints {stdio pcOnly dde} -setup {
+test winDde-6.5 {DDE remote servername collision} -constraints {stdio win dde} -setup {
set name child-6.5
set child [createChildProcess $name]
} -body {
@@ -241,7 +241,7 @@ test winDde-6.5 {DDE remote servername collision} -constraints {stdio pcOnly dde
dde execute TclEval $name {set done 1}
update
} -result "child-6.5 #2"
-test winDde-6.6 {DDE remote servername collision force} -constraints {stdio pcOnly dde} -setup {
+test winDde-6.6 {DDE remote servername collision force} -constraints {stdio win dde} -setup {
set name child-6.6
set child [createChildProcess $name]
} -body {
@@ -253,7 +253,7 @@ test winDde-6.6 {DDE remote servername collision force} -constraints {stdio pcOn
# -------------------------------------------------------------------------
-test winDde-7.1 {Load DDE in slave interpreter } -constraints {pcOnly dde} -setup {
+test winDde-7.1 {Load DDE in slave interpreter } -constraints {win dde} -setup {
interp create slave
} -body {
slave eval [list load $lib dde]
@@ -261,7 +261,7 @@ test winDde-7.1 {Load DDE in slave interpreter } -constraints {pcOnly dde} -setu
} -cleanup {
interp delete slave
} -result {dde-interp-7.1}
-test winDde-7.2 {DDE slave cleanup} -constraints {pcOnly dde} -setup {
+test winDde-7.2 {DDE slave cleanup} -constraints {win dde} -setup {
interp create slave
slave eval [list load $lib dde]
slave eval [list dde servername -- dde-interp-7.5]
@@ -274,7 +274,7 @@ test winDde-7.2 {DDE slave cleanup} -constraints {pcOnly dde} -setup {
set s
}
} -result {}
-test winDde-7.3 {DDE present in slave interp} -constraints {pcOnly dde} -setup {
+test winDde-7.3 {DDE present in slave interp} -constraints {win dde} -setup {
interp create slave
slave eval [list load $lib dde]
slave eval [list dde servername -- dde-interp-7.3]
@@ -283,7 +283,7 @@ test winDde-7.3 {DDE present in slave interp} -constraints {pcOnly dde} -setup {
} -cleanup {
interp delete slave
} -result {{TclEval dde-interp-7.3}}
-test winDde-7.4 {interp name collision with -force} -constraints {pcOnly dde} -setup {
+test winDde-7.4 {interp name collision with -force} -constraints {win dde} -setup {
interp create slave
slave eval [list load $lib dde]
slave eval [list dde servername -- dde-interp-7.4]
@@ -292,7 +292,7 @@ test winDde-7.4 {interp name collision with -force} -constraints {pcOnly dde} -s
} -cleanup {
interp delete slave
} -result {dde-interp-7.4}
-test winDde-7.5 {interp name collision without -force} -constraints {pcOnly dde} -setup {
+test winDde-7.5 {interp name collision without -force} -constraints {win dde} -setup {
interp create slave
slave eval [list load $lib dde]
slave eval [list dde servername -- dde-interp-7.5]
@@ -304,7 +304,7 @@ test winDde-7.5 {interp name collision without -force} -constraints {pcOnly dde}
# -------------------------------------------------------------------------
-test winDde-8.1 {Safe DDE load} -constraints {pcOnly dde} -setup {
+test winDde-8.1 {Safe DDE load} -constraints {win dde} -setup {
interp create -safe slave
slave invokehidden load $lib dde
} -body {
@@ -312,20 +312,20 @@ test winDde-8.1 {Safe DDE load} -constraints {pcOnly dde} -setup {
} -cleanup {
interp delete slave
} -result {1 {invalid command name "dde"}}
-test winDde-8.2 {Safe DDE set servername} -constraints {pcOnly dde} -setup {
+test winDde-8.2 {Safe DDE set servername} -constraints {win dde} -setup {
interp create -safe slave
slave invokehidden load $lib dde
} -body {
slave invokehidden dde servername slave
} -cleanup {interp delete slave} -result {slave}
-test winDde-8.3 {Safe DDE check handler required for eval} -constraints {pcOnly dde} -setup {
+test winDde-8.3 {Safe DDE check handler required for eval} -constraints {win dde} -setup {
interp create -safe slave
slave invokehidden load $lib dde
slave invokehidden dde servername slave
} -body {
catch {dde eval slave set a 1} msg
} -cleanup {interp delete slave} -result {1}
-test winDde-8.4 {Safe DDE check that execute is denied} -constraints {pcOnly dde} -setup {
+test winDde-8.4 {Safe DDE check that execute is denied} -constraints {win dde} -setup {
interp create -safe slave
slave invokehidden load $lib dde
slave invokehidden dde servername slave
@@ -336,7 +336,7 @@ test winDde-8.4 {Safe DDE check that execute is denied} -constraints {pcOnly dde
slave eval set a
} msg] $msg
} -cleanup {interp delete slave} -result {0 1}
-test winDde-8.5 {Safe DDE check that request is denied} -constraints {pcOnly dde} -setup {
+test winDde-8.5 {Safe DDE check that request is denied} -constraints {win dde} -setup {
interp create -safe slave
slave invokehidden load $lib dde
slave invokehidden dde servername slave
@@ -346,14 +346,14 @@ test winDde-8.5 {Safe DDE check that request is denied} -constraints {pcOnly dde
} -cleanup {
interp delete slave
} -result {1 {remote server cannot handle this command}}
-test winDde-8.6 {Safe DDE assign handler procedure} -constraints {pcOnly dde} -setup {
+test winDde-8.6 {Safe DDE assign handler procedure} -constraints {win dde} -setup {
interp create -safe slave
slave invokehidden load $lib dde
slave eval {proc DDEACCEPT {cmd} {set ::DDECMD $cmd}}
} -body {
slave invokehidden dde servername -handler DDEACCEPT slave
} -cleanup {interp delete slave} -result slave
-test winDde-8.7 {Safe DDE check simple command} -constraints {pcOnly dde} -setup {
+test winDde-8.7 {Safe DDE check simple command} -constraints {win dde} -setup {
interp create -safe slave
slave invokehidden load $lib dde
slave eval {proc DDEACCEPT {cmd} {set ::DDECMD $cmd}}
@@ -363,7 +363,7 @@ test winDde-8.7 {Safe DDE check simple command} -constraints {pcOnly dde} -setup
dde eval slave set x 1
} msg] $msg
} -cleanup {interp delete slave} -result {0 {set x 1}}
-test winDde-8.8 {Safe DDE check non-list command} -constraints {pcOnly dde} -setup {
+test winDde-8.8 {Safe DDE check non-list command} -constraints {win dde} -setup {
interp create -safe slave
slave invokehidden load $lib dde
slave eval {proc DDEACCEPT {cmd} {set ::DDECMD $cmd}}
@@ -375,7 +375,7 @@ test winDde-8.8 {Safe DDE check non-list command} -constraints {pcOnly dde} -set
string compare [slave eval set DDECMD] $s
} msg] $msg
} -cleanup {interp delete slave} -result {0 0}
-test winDde-8.9 {Safe DDE check command evaluation} -constraints {pcOnly dde} -setup {
+test winDde-8.9 {Safe DDE check command evaluation} -constraints {win dde} -setup {
interp create -safe slave
slave invokehidden load $lib dde
slave eval {proc DDEACCEPT {cmd} {set ::DDECMD [uplevel \#0 $cmd]}}
@@ -386,7 +386,7 @@ test winDde-8.9 {Safe DDE check command evaluation} -constraints {pcOnly dde} -s
slave eval set x
} msg] $msg
} -cleanup {interp delete slave} -result {0 1}
-test winDde-8.10 {Safe DDE check command evaluation (2)} -constraints {pcOnly dde} -setup {
+test winDde-8.10 {Safe DDE check command evaluation (2)} -constraints {win dde} -setup {
interp create -safe slave
slave invokehidden load $lib dde
slave eval {proc DDEACCEPT {cmd} {set ::DDECMD [uplevel \#0 $cmd]}}
@@ -397,7 +397,7 @@ test winDde-8.10 {Safe DDE check command evaluation (2)} -constraints {pcOnly dd
slave eval set x
} msg] $msg
} -cleanup {interp delete slave} -result {0 1}
-test winDde-8.11 {Safe DDE check command evaluation (3)} -constraints {pcOnly dde} -setup {
+test winDde-8.11 {Safe DDE check command evaluation (3)} -constraints {win dde} -setup {
interp create -safe slave
slave invokehidden load $lib dde
slave eval {proc DDEACCEPT {cmd} {set ::DDECMD [uplevel \#0 $cmd]}}
@@ -411,7 +411,7 @@ test winDde-8.11 {Safe DDE check command evaluation (3)} -constraints {pcOnly dd
# -------------------------------------------------------------------------
-test winDde-9.1 {External safe DDE check string passing} -constraints {pcOnly dde stdio} -setup {
+test winDde-9.1 {External safe DDE check string passing} -constraints {win dde stdio} -setup {
set name child-9.1
set child [createChildProcess $name Handler1]
file copy -force script1.tcl dde-script.tcl
@@ -426,7 +426,7 @@ test winDde-9.1 {External safe DDE check string passing} -constraints {pcOnly dd
update
file delete -force -- dde-script.tcl
} -result {0 {set x 1}}
-test winDde-9.2 {External safe DDE check command evaluation} -constraints {pcOnly dde stdio} -setup {
+test winDde-9.2 {External safe DDE check command evaluation} -constraints {win dde stdio} -setup {
set name child-9.2
set child [createChildProcess $name Handler2]
file copy -force script1.tcl dde-script.tcl
@@ -441,7 +441,7 @@ test winDde-9.2 {External safe DDE check command evaluation} -constraints {pcOnl
update
file delete -force -- dde-script.tcl
} -result {0 1}
-test winDde-9.3 {External safe DDE check prefixed arguments} -constraints {pcOnly dde stdio} -setup {
+test winDde-9.3 {External safe DDE check prefixed arguments} -constraints {win dde stdio} -setup {
set name child-9.3
set child [createChildProcess $name [list Handler3 ARG]]
file copy -force script1.tcl dde-script.tcl