summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2003-11-20 00:15:59 (GMT)
committerdgp <dgp@users.sourceforge.net>2003-11-20 00:15:59 (GMT)
commit17d6b9dd7f32888e6f4e99ccdbd57f86c0e7b54e (patch)
tree48e141b063fa433f83212e25655c5b6a2c2795ce /tests
parente26a569c68c90ec0011ec6b4e464fb77c78b7d89 (diff)
downloadtcl-17d6b9dd7f32888e6f4e99ccdbd57f86c0e7b54e.zip
tcl-17d6b9dd7f32888e6f4e99ccdbd57f86c0e7b54e.tar.gz
tcl-17d6b9dd7f32888e6f4e99ccdbd57f86c0e7b54e.tar.bz2
* tests/compile.test (compile-16.22.0): Improved test for the
recent fix for Bug 845412.
Diffstat (limited to 'tests')
-rw-r--r--tests/compile.test11
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/compile.test b/tests/compile.test
index 809c69a..6461651 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.29 2003/11/19 22:04:39 dkf Exp $
+# RCS: @(#) $Id: compile.test,v 1.30 2003/11/20 00:16:00 dgp Exp $
package require tcltest 2
namespace import -force ::tcltest::*
@@ -374,7 +374,7 @@ test compile-15.5 {proper TCL_RETURN code from [return]} {
} ""
testConstraint testevalex [llength [info commands testevalex]]
-for {set noComp 1} {$noComp <= 1} {incr noComp} {
+for {set noComp 0} {$noComp <= 1} {incr noComp} {
if $noComp {
interp alias {} run {} testevalex
@@ -503,9 +503,12 @@ test compile-16.21.$noComp {TclCompileScript: word expansion} -body {
rename LongList {}
} -returnCodes ok -result [expr {wide(1)<<32}]
-test compile-16.22.$noComp {TclCompileScript: word expansion not mandatory} -body {
+test compile-16.22.$noComp {
+ Bug 845412: TclCompileScript: word expansion not mandatory
+} -body {
+ # This test may crash and will fail unless Bug 845412 is fixed.
proc ReturnResults args {return $args}
- if 1 "ReturnResults [string repeat {x } 260]"
+ run "ReturnResults [string repeat {x } 260]"
} -constraints $constraints -cleanup {
rename ReturnResults {}
} -returnCodes ok -result [string trim [string repeat {x } 260]]