diff options
author | dgp <dgp@noemail.net> | 2003-11-20 00:15:58 (GMT) |
---|---|---|
committer | dgp <dgp@noemail.net> | 2003-11-20 00:15:58 (GMT) |
commit | 3215bc9c985b2dad0fc74cf0a4c8548d6fd447ed (patch) | |
tree | 48e141b063fa433f83212e25655c5b6a2c2795ce | |
parent | 3f244ed8b9063f8e67c0195c2ba6a9d8bd869965 (diff) | |
download | tcl-3215bc9c985b2dad0fc74cf0a4c8548d6fd447ed.zip tcl-3215bc9c985b2dad0fc74cf0a4c8548d6fd447ed.tar.gz tcl-3215bc9c985b2dad0fc74cf0a4c8548d6fd447ed.tar.bz2 |
* tests/compile.test (compile-16.22.0): Improved test for the
recent fix for Bug 845412.
FossilOrigin-Name: 39903cd5c5628da123dc037f15635d3fc3bf83a4
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | tests/compile.test | 11 |
2 files changed, 13 insertions, 5 deletions
@@ -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]] |