summaryrefslogtreecommitdiffstats
path: root/tests/stack.test
diff options
context:
space:
mode:
authorhobbs <hobbs@noemail.net>1999-11-19 06:35:00 (GMT)
committerhobbs <hobbs@noemail.net>1999-11-19 06:35:00 (GMT)
commit68d6cc738383ce6c24da7c55faef68d19dae4b5b (patch)
tree6bc2828afe5020b73283f886847e56e00a4bc9c7 /tests/stack.test
parent1188537fc33244ba3cdda5f7d90c5cb0f4ceb78d (diff)
downloadtcl-68d6cc738383ce6c24da7c55faef68d19dae4b5b.zip
tcl-68d6cc738383ce6c24da7c55faef68d19dae4b5b.tar.gz
tcl-68d6cc738383ce6c24da7c55faef68d19dae4b5b.tar.bz2
* tests/scan.test:
* generic/tclScan.c: finished support for inline scan by supporting XPG identifiers. FossilOrigin-Name: 67351ebdfbfda1cdb413810df912cc7da8d3143a
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 5beda5b..99f2a93 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.4 1999/06/26 20:55:13 rjohnson Exp $
+# RCS: @(#) $Id: stack.test,v 1.5 1999/11/19 06:35:02 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 {} { return [recurse] }
- catch {recurse} rv
+ proc recurse {i} { return [recurse [incr i]] }
+ catch {recurse 0} rv
rename recurse {}
set rv
} {too many nested calls to Tcl_EvalObj (infinite loop?)}