summaryrefslogtreecommitdiffstats
path: root/tests/compile.test
diff options
context:
space:
mode:
authorsebres <sebres@users.sourceforge.net>2019-09-26 16:22:42 (GMT)
committersebres <sebres@users.sourceforge.net>2019-09-26 16:22:42 (GMT)
commit052144cb1fd693cf17ac2ebdf15272268d16a57d (patch)
tree0844f48ca0c2795483eef4cad79f0cf6e0be6dbd /tests/compile.test
parentdb3ee6681bbf6e91acc7a32b9f81596b3e2be911 (diff)
parentf1550da616e7930e5c7de2fabe8f9b24d09eb555 (diff)
downloadtcl-052144cb1fd693cf17ac2ebdf15272268d16a57d.zip
tcl-052144cb1fd693cf17ac2ebdf15272268d16a57d.tar.gz
tcl-052144cb1fd693cf17ac2ebdf15272268d16a57d.tar.bz2
merge 8.5
Diffstat (limited to 'tests/compile.test')
-rw-r--r--tests/compile.test6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/compile.test b/tests/compile.test
index 0a29c15..cb41063 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