summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-10-02 21:40:45 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-10-02 21:40:45 (GMT)
commit3d55f5f6f09821cbdc9fd75500904b5864d0ba02 (patch)
tree31a2226a3cb9787ee33bd2831424140c4d211525 /tests
parent2c327304a1fe9e05367e2845d7a53d7807325473 (diff)
parent67e037520d52c273bf697c5eb14217f675da6ba9 (diff)
downloadtcl-3d55f5f6f09821cbdc9fd75500904b5864d0ba02.zip
tcl-3d55f5f6f09821cbdc9fd75500904b5864d0ba02.tar.gz
tcl-3d55f5f6f09821cbdc9fd75500904b5864d0ba02.tar.bz2
Merge 8.7
Diffstat (limited to 'tests')
-rw-r--r--tests/compile.test6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/compile.test b/tests/compile.test
index 4d57549..18e978f 100644
--- a/tests/compile.test
+++ b/tests/compile.test
@@ -494,10 +494,10 @@ test compile-13.2 {TclCompileScript: testing expected nested scripts compilation
ti eval {set result {}}
} -body {
# Test different compilation variants (instructions evalStk, invokeStk, etc),
- # with 2000 (1000 in debug) nested scripts (bodies). If you get SO/SF exceptions on some low-stack
+ # with 1500 (1000 in debug) nested scripts (bodies). If you get SO/SF exceptions on some low-stack
# boxes or systems, please don't decrease it (either provide a constraint)
ti eval {foreach cmd {eval "if 1" try catch} {
- set c [gencode [expr {![::tcl::pkgconfig get debug] ? 2000 : 1000}] $cmd]
+ set c [gencode [expr {![::tcl::pkgconfig get debug] ? 1500 : 1000}] $cmd]
if 1 $c
}}
ti eval {set result}
@@ -511,7 +511,7 @@ test compile-13.3 {TclCompileScript: testing check of max depth by nested script
# with 500 nested scripts (bodies). It must generate "too many nested compilations"
# error for any variant we're testing here:
ti eval {foreach cmd {eval "if 1" try catch} {
- set c [gencode [expr {![info exists ::tcl_platform(debug)] ? 2000 : 1000}] $cmd]
+ set c [gencode 500 $cmd]
lappend errors [catch $c e] $e
}}
#puts $errors