summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorhobbs <hobbs>2001-09-11 00:46:35 (GMT)
committerhobbs <hobbs>2001-09-11 00:46:35 (GMT)
commit2d6d1c0b8b709857509a6107d227c5d3764a0104 (patch)
tree2a977aab7fbca2d585722bad30add8c92ec05768 /tests
parent6448477ebf489632da32e76dd33d6f42735d390f (diff)
downloadtcl-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')
-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