From 17d6b9dd7f32888e6f4e99ccdbd57f86c0e7b54e Mon Sep 17 00:00:00 2001 From: dgp Date: Thu, 20 Nov 2003 00:15:59 +0000 Subject: * tests/compile.test (compile-16.22.0): Improved test for the recent fix for Bug 845412. --- ChangeLog | 7 ++++++- tests/compile.test | 11 +++++++---- 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 + + * tests/compile.test (compile-16.22.0): Improved test for the + recent fix for Bug 845412. + 2003-11-19 Donal K. Fellows * 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 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]] -- cgit v0.12