From 2f7164a07ccf7f1803f0f2a169bbc07169fd7084 Mon Sep 17 00:00:00 2001 From: ferrieux Date: Sun, 22 Feb 2009 17:45:20 +0000 Subject: Revert commits of 20080723. Those were speed tests, that are inherently brittle. --- ChangeLog | 5 +++++ tests/binary.test | 13 +------------ tests/lrange.test | 8 +------- 3 files changed, 7 insertions(+), 19 deletions(-) diff --git a/ChangeLog b/ChangeLog index 44c049d..a544df3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-02-22 Alexandre Ferrieux + + * tests/lrange.test: Revert commits of 20080723. Those were + * tests/binary.test: speed tests, that are inherently brittle. + 2009-02-21 Don Porter * generic/tclStringObj.c: Several revisions to the shimmering diff --git a/tests/binary.test b/tests/binary.test index b23548e..c01cdde 100644 --- a/tests/binary.test +++ b/tests/binary.test @@ -10,7 +10,7 @@ # See the file "license.terms" for information on usage and redistribution of # this file, and for a DISCLAIMER OF ALL WARRANTIES. # -# RCS: @(#) $Id: binary.test,v 1.38 2008/12/15 17:11:34 ferrieux Exp $ +# RCS: @(#) $Id: binary.test,v 1.39 2009/02/22 17:45:21 ferrieux Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest @@ -2727,17 +2727,6 @@ test binary-75.25 {binary decode uuencode} -body { binary decode uuencode $s } -returnCodes error -match glob -result {invalid uuencode character "z" at position 4} -test binary-76.1 {byte array concat speed} -body { - set b1 [binary format H* [string repeat E9 1000000]] - set b2 [binary format H* 41] - set t1 [lindex [time {set z ${b1}${b2}}] 0] - unset z - set b1 [binary format H* [string repeat E9 1000000]] - set b2 [binary format H* 41] - set t2 [lindex [time {set z ${b1}é}] 0] - expr {($t2/$t1)>3} -} -result 1 - # cleanup ::tcltest::cleanupTests return diff --git a/tests/lrange.test b/tests/lrange.test index f218d38..6f8f88d 100644 --- a/tests/lrange.test +++ b/tests/lrange.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: lrange.test,v 1.11 2008/08/09 00:16:06 das Exp $ +# RCS: @(#) $Id: lrange.test,v 1.12 2009/02/22 17:45:21 ferrieux Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest @@ -66,12 +66,6 @@ test lrange-1.15 {range of list elements} { test lrange-1.16 {list element quoting} { lrange {[append a .b]} 0 end } {{[append} a .b\]} -test lrange-1.17 {lrange in-place speed} -body { - set l [lrepeat 1000000 0] - set t1 [lindex [time {set l [lrange $l 0 end-1]}] 0] - set t2 [lindex [time {set l [lrange $l[unset l] 0 end-1]}] 0] - expr {($t1/$t2)>100} -} -result 1 -cleanup {unset l t1 t2} test lrange-2.1 {error conditions} { list [catch {lrange a b} msg] $msg } {1 {wrong # args: should be "lrange list first last"}} -- cgit v0.12