diff options
author | Miguel Sofer <miguel.sofer@gmail.com> | 2006-10-09 19:15:40 (GMT) |
---|---|---|
committer | Miguel Sofer <miguel.sofer@gmail.com> | 2006-10-09 19:15:40 (GMT) |
commit | 25e6ad437c89b37b6e1b4c2283cc0eef267e9c06 (patch) | |
tree | 5d5d3889692f5fb9e51abfce3aeb3b7d346b2297 /tests/while.test | |
parent | 57911c541c6dbf733b08171a1711081e59d2b95e (diff) | |
download | tcl-25e6ad437c89b37b6e1b4c2283cc0eef267e9c06.zip tcl-25e6ad437c89b37b6e1b4c2283cc0eef267e9c06.tar.gz tcl-25e6ad437c89b37b6e1b4c2283cc0eef267e9c06.tar.bz2 |
* tests/*.test: updated all tests to refer explicitly to thetip_278_20061009
global variables ::errorInfo, ::errorCode, ::env and
::tcl_platform: many were relying on the alternative lookup in the
global namespace, that feature is tested specifically in namespace
and variable tests.
The modified testfiles are: apply.test, basic.test, case.test,
cmdIL.test, cmdMZ.test, compExpr-old.test, error.test, eval.test,
event.test, expr.test, fileSystem.test, for.test, http.test,
if.test, incr-old.test, incr.test, interp.test, io.test,
ioCmd.test, load.test, misc.test, namespace.test, parse.test,
parseOld.test, pkg.test, proc-old.test, set.test, switch.test,
tcltest.test, thread.test, var.test, while-old.test, while.test.
Diffstat (limited to 'tests/while.test')
-rw-r--r-- | tests/while.test | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/while.test b/tests/while.test index 562a2aa..5aadd10 100644 --- a/tests/while.test +++ b/tests/while.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: while.test,v 1.12 2006/08/22 18:10:44 dgp Exp $ +# RCS: @(#) $Id: while.test,v 1.13 2006/10/09 19:15:45 msofer Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest 2 @@ -29,7 +29,7 @@ test while-1.1 {TclCompileWhileCmd: missing test expression} { test while-1.2 {TclCompileWhileCmd: error in test expression} -body { set i 0 catch {while {$i<} break} msg - set errorInfo + set ::errorInfo } -match glob -result {*"while {$i<} break"} test while-1.3 {TclCompileWhileCmd: error in test expression} { set err [catch {while {"a"+"b"} {error "loop aborted"}} msg] @@ -66,7 +66,7 @@ test while-1.7 {TclCompileWhileCmd: missing command body} { test while-1.8 {TclCompileWhileCmd: error compiling command body} -body { set i 0 catch {while {$i < 5} {set}} msg - set errorInfo + set ::errorInfo } -match glob -result {wrong # args: should be "set varName ?newValue?" while *ing "set"*} @@ -303,7 +303,7 @@ test while-4.3 {while (not compiled): error in test expression} -body { set i 0 set z while catch {$z {$i<} {set x 1}} msg - set errorInfo + set ::errorInfo } -match glob -result {*"$z {$i<} {set x 1}"} test while-4.4 {while (not compiled): error in test expression} { set z while @@ -346,7 +346,7 @@ test while-4.9 {while (not compiled): error compiling command body} -body { set i 0 set z while catch {$z {$i < 5} {set}} msg - set errorInfo + set ::errorInfo } -match glob -result {wrong # args: should be "set varName ?newValue?" while *ing "set" |