summaryrefslogtreecommitdiffstats
path: root/tests/winDde.test
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-07-28 23:22:36 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-07-28 23:22:36 (GMT)
commita3af17ef6c2cb79bbda7f23819f3abc5b8cc82cb (patch)
tree4b28336c18397a0d59174b25eae6e7bec8051c40 /tests/winDde.test
parentecb3629055eb5a5c39bab62005d6ca5913dcd5e6 (diff)
parent7fef4f4ce4148bf2c05b55d8af0fdc6b5d3356b1 (diff)
downloadtcl-a3af17ef6c2cb79bbda7f23819f3abc5b8cc82cb.zip
tcl-a3af17ef6c2cb79bbda7f23819f3abc5b8cc82cb.tar.gz
tcl-a3af17ef6c2cb79bbda7f23819f3abc5b8cc82cb.tar.bz2
[Bug 3549770] Multiple test failures running tcltest outside build tree
Diffstat (limited to 'tests/winDde.test')
-rw-r--r--tests/winDde.test20
1 files changed, 8 insertions, 12 deletions
diff --git a/tests/winDde.test b/tests/winDde.test
index 83f3598..b73f665 100644
--- a/tests/winDde.test
+++ b/tests/winDde.test
@@ -15,16 +15,14 @@ if {"::tcltest" ni [namespace children]} {
namespace import -force ::tcltest::*
}
-if [catch {
- # Is the dde extension already static to this shell?
- if [catch {load {} Dde; set ::ddelib {}}] {
- # try the location given to use on the commandline to tcltest
- ::tcltest::loadTestedCommands
- load $::ddelib Dde
+testConstraint dde 0
+if {[testConstraint win]} {
+ if {![catch {
+ ::tcltest::loadTestedCommands
+ package require dde 1.4.0b1
+ set ::ddelib [lindex [package ifneeded dde 1.4.0b1] 1]}]} {
+ testConstraint dde 1
}
- testConstraint dde 1
-}] {
- testConstraint dde 0
}
@@ -39,9 +37,7 @@ proc createChildProcess {ddeServerName args} {
set f [open $::scriptName w+]
puts $f [list set ddeServerName $ddeServerName]
- if {$::ddelib != ""} {
- puts $f [list load $::ddelib Dde]
- }
+ puts $f [list load $::ddelib dde]
puts $f {
# DDE child server -
#