summaryrefslogtreecommitdiffstats
path: root/tests/stack.test
diff options
context:
space:
mode:
authorhobbs <hobbs@noemail.net>1999-11-19 06:40:01 (GMT)
committerhobbs <hobbs@noemail.net>1999-11-19 06:40:01 (GMT)
commit6790d047772de29fd7cdad2fcad2a5939cc3d622 (patch)
treefc8c30d08cfecefed7371791b3c0a81c2a9a7a01 /tests/stack.test
parente8c71267d7c93bc13e5dc836ed5574cd066f6868 (diff)
downloadtcl-6790d047772de29fd7cdad2fcad2a5939cc3d622.zip
tcl-6790d047772de29fd7cdad2fcad2a5939cc3d622.tar.gz
tcl-6790d047772de29fd7cdad2fcad2a5939cc3d622.tar.bz2
minor change that prevents stack blowing
FossilOrigin-Name: c11ea62b85a4bb4e601b125cc6a1fadf9a13a238
Diffstat (limited to 'tests/stack.test')
-rw-r--r--tests/stack.test6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/stack.test b/tests/stack.test
index 99f2a93..1c1314c 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.5 1999/11/19 06:35:02 hobbs Exp $
+# RCS: @(#) $Id: stack.test,v 1.6 1999/11/19 06:40:01 hobbs Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
@@ -19,8 +19,8 @@ if {[lsearch [namespace children] ::tcltest] == -1} {
# Note that a failure in this test results in a crash of the executable.
test stack-1.1 {maxNestingDepth reached on infinite recursion} {
- proc recurse {i} { return [recurse [incr i]] }
- catch {recurse 0} rv
+ proc recurse {} { return [recurse] }
+ catch {recurse} rv
rename recurse {}
set rv
} {too many nested calls to Tcl_EvalObj (infinite loop?)}