summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMiguel Sofer <miguel.sofer@gmail.com>2001-11-19 21:04:42 (GMT)
committerMiguel Sofer <miguel.sofer@gmail.com>2001-11-19 21:04:42 (GMT)
commit78fe2e038888829050d069a35032288d3da160d5 (patch)
treef3beb67c6d47f3a1b285bbe5da605ebe1e8ebc00 /tests
parent0c8611b14c13a79efe7691651a45f20c7b47409c (diff)
downloadtcl-78fe2e038888829050d069a35032288d3da160d5.zip
tcl-78fe2e038888829050d069a35032288d3da160d5.tar.gz
tcl-78fe2e038888829050d069a35032288d3da160d5.tar.bz2
* tests/compile.test: added a test for bug [Bug 483309]
Diffstat (limited to 'tests')
-rw-r--r--tests/compile.test15
1 files changed, 14 insertions, 1 deletions
diff --git a/tests/compile.test b/tests/compile.test
index dfa5770..abadee0 100644
--- a/tests/compile.test
+++ b/tests/compile.test
@@ -11,7 +11,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: compile.test,v 1.13 2001/10/12 21:04:15 msofer Exp $
+# RCS: @(#) $Id: compile.test,v 1.14 2001/11/19 21:04:42 msofer Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
@@ -286,6 +286,19 @@ test compile-12.2 {testing error on literal deletion} {memDebug execCommandExist
set res
} 0
+# Special test for underestimating the maxStackSize required for a
+# compiled command. A failure will cause a segfault in the child
+# process.
+test compile-13.1 {testing underestimate of maxStackSize in list cmd} {
+ set body {set x [list}
+ for {set i 0} {$i < 3000} {incr i} {
+ append body " $i"
+ }
+ append body {]; puts OK}
+ regsub BODY {proc crash {} {BODY}; crash} $body script
+ list [catch {exec [info nameofexecutable] << $script} msg] $msg
+} {0 OK}
+
# cleanup
catch {rename p ""}
catch {namespace delete test_ns_compile}