diff options
Diffstat (limited to 'tests/while-old.test')
| -rw-r--r-- | tests/while-old.test | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/tests/while-old.test b/tests/while-old.test index f0d55ab..ee17d0b 100644 --- a/tests/while-old.test +++ b/tests/while-old.test @@ -12,11 +12,10 @@ # # See the file "license.terms" for information on usage and redistribution # of this file, and for a DISCLAIMER OF ALL WARRANTIES. -# -# RCS: @(#) $Id: while-old.test,v 1.3 1999/04/16 00:47:36 stanton Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { - source [file join [pwd] [file dirname [info script]] defs.tcl] + package require tcltest + namespace import -force ::tcltest::* } test while-old-1.1 {basic while loops} { @@ -102,7 +101,7 @@ test while-old-4.5 {errors in while loops} { } {1 {expected boolean value but got "foo"}} test while-old-4.6 {errors in while loops} { set err [catch {while {1} {error "loop aborted"}} msg] - list $err $msg $errorInfo + list $err $msg $::errorInfo } {1 {loop aborted} {loop aborted while executing "error "loop aborted""}} @@ -118,15 +117,3 @@ test while-old-5.2 {while return result} { # cleanup ::tcltest::cleanupTests return - - - - - - - - - - - - |
