diff options
author | hobbs <hobbs> | 2001-09-11 00:46:35 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2001-09-11 00:46:35 (GMT) |
commit | 2d6d1c0b8b709857509a6107d227c5d3764a0104 (patch) | |
tree | 2a977aab7fbca2d585722bad30add8c92ec05768 /tests/stack.test | |
parent | 6448477ebf489632da32e76dd33d6f42735d390f (diff) | |
download | tcl-2d6d1c0b8b709857509a6107d227c5d3764a0104.zip tcl-2d6d1c0b8b709857509a6107d227c5d3764a0104.tar.gz tcl-2d6d1c0b8b709857509a6107d227c5d3764a0104.tar.bz2 |
* tests/stack.test:
* generic/tclInterp.c (AliasObjCmd): Check the numLevels to ensure
that we aren't hitting some alias loop condition. [Bug #443184]
Diffstat (limited to 'tests/stack.test')
-rw-r--r-- | tests/stack.test | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/stack.test b/tests/stack.test index 9176201..1d1bdce 100644 --- a/tests/stack.test +++ b/tests/stack.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: stack.test,v 1.9 2000/09/29 21:42:35 hobbs Exp $ +# RCS: @(#) $Id: stack.test,v 1.10 2001/09/11 00:46:35 hobbs Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest @@ -45,6 +45,14 @@ test stack-1.1 {maxNestingDepth reached on infinite recursion} {minStack2400} { set rv } {too many nested calls to Tcl_EvalObj (infinite loop?)} +test stack-2.1 {maxNestingDepth reached on infinite recursion} {minStack2400} { + catch {rename unknown unknown_safe} + interp alias {} unknown {} notaknownproc + catch {foo} msg + catch {rename unknown {} ; rename unknown_safe unknown} + set msg +} {too many nested calls to AliasObjCmd (infinite loop using alias?)} + # cleanup ::tcltest::cleanupTests return |