URL
https://opencores.org/ocsvn/or1k/or1k/trunk
[/] [or1k/] [trunk/] [insight/] [tcl/] [tests/] [stack.test] - Blame information for rev 1765
Details |
Compare with Previous |
View Log
Line No. |
Rev |
Author |
Line |
1 |
578 |
markom |
# Tests that the stack size is big enough for the application.
|
2 |
|
|
#
|
3 |
|
|
# This file contains a collection of tests for one or more of the Tcl
|
4 |
|
|
# built-in commands. Sourcing this file into Tcl runs the tests and
|
5 |
|
|
# generates output for errors. No output means no errors were found.
|
6 |
|
|
#
|
7 |
|
|
# Copyright (c) 1998 by Scriptics Corporation.
|
8 |
|
|
#
|
9 |
|
|
# See the file "license.terms" for information on usage and redistribution
|
10 |
|
|
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
11 |
|
|
#
|
12 |
|
|
# RCS: @(#) $Id: stack.test,v 1.1.1.1 2002-01-16 10:25:36 markom Exp $
|
13 |
|
|
|
14 |
|
|
if {[string compare test [info procs test]] == 1} then {source defs}
|
15 |
|
|
|
16 |
|
|
# Note that a failure in this test results in a crash of the executable.
|
17 |
|
|
|
18 |
|
|
test stack-1.1 {maxNestingDepth reached on infinite recursion} {
|
19 |
|
|
proc recurse {} { return [recurse] }
|
20 |
|
|
catch {recurse} rv
|
21 |
|
|
rename recurse {}
|
22 |
|
|
set rv
|
23 |
|
|
} {too many nested calls to Tcl_EvalObj (infinite loop?)}
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.