summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--tests/compile.test11
2 files changed, 13 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 283b93b..e0f1dcf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,9 +1,14 @@
+2003-11-19 Don Porter <dgp@users.sourceforge.net>
+
+ * tests/compile.test (compile-16.22.0): Improved test for the
+ recent fix for Bug 845412.
+
2003-11-19 Donal K. Fellows <donal.k.fellows@man.ac.uk>
* generic/tclCompile.c (TclCompileScript): Added a guard for the
expansion code so that long non-expanding commands don't get
expansion infrastructure inserted in them, especially when that
- infrastructure isn't initialised.
+ infrastructure isn't initialised. [Bug 845412]
2003-11-18 David Gravereaux <davygrvy@pobox.com>
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]]