summaryrefslogtreecommitdiffstats
path: root/tests/stack.test
diff options
context:
space:
mode:
authorhobbs <hobbs@noemail.net>2001-09-11 00:46:35 (GMT)
committerhobbs <hobbs@noemail.net>2001-09-11 00:46:35 (GMT)
commit620f90e845f5b30589ddd6d5556d73b33f3fb342 (patch)
tree2a977aab7fbca2d585722bad30add8c92ec05768 /tests/stack.test
parent7088999151fd198589d28af13a216cc955d7944d (diff)
downloadtcl-620f90e845f5b30589ddd6d5556d73b33f3fb342.zip
tcl-620f90e845f5b30589ddd6d5556d73b33f3fb342.tar.gz
tcl-620f90e845f5b30589ddd6d5556d73b33f3fb342.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] FossilOrigin-Name: 09e3192250ad58a483513bdc5f756c54db8820a3
Diffstat (limited to 'tests/stack.test')
-rw-r--r--tests/stack.test10
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