summaryrefslogtreecommitdiffstats
path: root/tests/winDde.test
diff options
context:
space:
mode:
authorhobbs <hobbs@noemail.net>2003-01-16 20:51:57 (GMT)
committerhobbs <hobbs@noemail.net>2003-01-16 20:51:57 (GMT)
commitf7278d4e4f4ac20dabbe05a764a309ce71e3e7b2 (patch)
tree3686cbe5c214f25e19c8bd56f0ea6f197e9f3a9b /tests/winDde.test
parent3c27c898a370a972f428790856e6eb1ca661e402 (diff)
downloadtcl-f7278d4e4f4ac20dabbe05a764a309ce71e3e7b2.zip
tcl-f7278d4e4f4ac20dabbe05a764a309ce71e3e7b2.tar.gz
tcl-f7278d4e4f4ac20dabbe05a764a309ce71e3e7b2.tar.bz2
* tests/winDde.test:
* win/tclWinDde.c (Tcl_DdeObjCmd): Prevent crash when empty service name is passed to 'dde eval' and goto errorNoResult in request and poke error cases to free up any allocated data. FossilOrigin-Name: 5cc2be8bc8e356e572f8dacb9a7644b7bf805176
Diffstat (limited to 'tests/winDde.test')
-rw-r--r--tests/winDde.test6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/winDde.test b/tests/winDde.test
index 37d91ee..c573d58 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.12 2002/07/10 11:56:45 dgp Exp $
+# RCS: @(#) $Id: winDde.test,v 1.13 2003/01/16 20:51:57 hobbs Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
@@ -164,6 +164,10 @@ test winDde-5.3 {check for bad arguments} {pcOnly} {
set result
} {wrong # args: should be "dde execute ?-async? serviceName topicName value"}
+test winDde-5.4 {DDE eval bad arguments} {pcOnly} {
+ list [catch {dde eval "" "foo"} msg] $msg
+} {1 {invalid service name ""}}
+
#cleanup
file delete -force $::scriptName
::tcltest::cleanupTests