summaryrefslogtreecommitdiffstats
path: root/tests/winDde.test
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-08-08 10:32:39 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-08-08 10:32:39 (GMT)
commit730bfc363104af29b3a656da24f5dbf00fe11fa9 (patch)
tree5ac50dfaff7dde2e41e507277f70fefdbbda6be3 /tests/winDde.test
parenta59b6e0bf7d4ce8ce4bf1d5b5f994bc0adc60912 (diff)
parent3489422b6ee1589effd0dadf0556985e331d689b (diff)
downloadtcl-730bfc363104af29b3a656da24f5dbf00fe11fa9.zip
tcl-730bfc363104af29b3a656da24f5dbf00fe11fa9.tar.gz
tcl-730bfc363104af29b3a656da24f5dbf00fe11fa9.tar.bz2
merge trunk
Diffstat (limited to 'tests/winDde.test')
-rw-r--r--tests/winDde.test21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/winDde.test b/tests/winDde.test
index 5bcf6c2..f04fb45 100644
--- a/tests/winDde.test
+++ b/tests/winDde.test
@@ -15,6 +15,7 @@ if {"::tcltest" ni [namespace children]} {
namespace import -force ::tcltest::*
}
+testConstraint debug [::tcl::pkgconfig get debug]
testConstraint dde 0
if {[testConstraint win]} {
if {![catch {
@@ -166,6 +167,16 @@ test winDde-3.7 {DDE request binary} -constraints dde -body {
dde execute -binary TclEval self [list set \xc3\xa1 \xc3\x84\x00]
scan [set \xe1] %c
} -result 196
+test winDde-3.8 {DDE poke locally} -constraints {dde debug} -body {
+ set \xe1 ""
+ dde poke TclEval self \xe1 \xc4
+ dde request TclEval self \xe1
+} -result \xc4
+test winDde-3.9 {DDE poke -binary locally} -constraints {dde debug} -body {
+ set \xe1 ""
+ dde poke -binary TclEval self \xe1 \xc3\x84\x00
+ dde request TclEval self \xe1
+} -result \xc4
# -------------------------------------------------------------------------
@@ -207,6 +218,16 @@ test winDde-4.4 {DDE eval remotely} -constraints {dde stdio} -body {
update
set \xe1
} -result foo
+test winDde-4.5 {DDE poke remotely} -constraints {dde debug stdio} -body {
+ set \xe1 ""
+ set name ch\xEDld-4.5
+ set child [createChildProcess $name]
+ dde poke TclEval $name \xe1 foo
+ set \xe1 [dde request TclEval $name \xe1]
+ dde execute TclEval $name {set done 1}
+ update
+ set \xe1
+} -result foo
# -------------------------------------------------------------------------