summaryrefslogtreecommitdiffstats
path: root/tests/cmdAH.test
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2012-12-13 15:59:51 (GMT)
committerdgp <dgp@users.sourceforge.net>2012-12-13 15:59:51 (GMT)
commit4557297b08546a1763773f2faae9e3614d34d078 (patch)
tree0b5177a6a5dab4217d95ada5e723b55c18a3d157 /tests/cmdAH.test
parente1c8f78ed0b89df2af160895d4fca6d630815c2a (diff)
downloadtcl-4557297b08546a1763773f2faae9e3614d34d078.zip
tcl-4557297b08546a1763773f2faae9e3614d34d078.tar.gz
tcl-4557297b08546a1763773f2faae9e3614d34d078.tar.bz2
3595576 Tests/fix for mem corruption: [catch] fails to store options in a var.
Diffstat (limited to 'tests/cmdAH.test')
-rw-r--r--tests/cmdAH.test6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/cmdAH.test b/tests/cmdAH.test
index 2e94d7d..fb0fefc 100644
--- a/tests/cmdAH.test
+++ b/tests/cmdAH.test
@@ -46,6 +46,12 @@ test cmdAH-1.2 {Tcl_CatchObjCmd, errors} {
test cmdAH-1.3 {Tcl_CatchObjCmd, errors} {
list [catch {catch foo bar baz spaz} msg] $msg
} {1 {wrong # args: should be "catch script ?resultVarName? ?optionVarName?"}}
+test cmdAH-1.4 {Bug 3595576} {
+ catch {catch {} -> noSuchNs::var}
+} 1
+test cmdAH-1.5 {Bug 3595576} {
+ catch {catch error -> noSuchNs::var}
+} 1
test cmdAH-2.1 {Tcl_CdObjCmd} {
list [catch {cd foo bar} msg] $msg