diff options
author | hobbs <hobbs> | 2003-01-16 20:51:57 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2003-01-16 20:51:57 (GMT) |
commit | 545d7776f7c48ef8faf032296dd9b2b5bda76247 (patch) | |
tree | 3686cbe5c214f25e19c8bd56f0ea6f197e9f3a9b /tests/winDde.test | |
parent | 87b28d9c78944ebbc26e0dfc02d0b4c07bbdba68 (diff) | |
download | tcl-545d7776f7c48ef8faf032296dd9b2b5bda76247.zip tcl-545d7776f7c48ef8faf032296dd9b2b5bda76247.tar.gz tcl-545d7776f7c48ef8faf032296dd9b2b5bda76247.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.
Diffstat (limited to 'tests/winDde.test')
-rw-r--r-- | tests/winDde.test | 6 |
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 |