summaryrefslogtreecommitdiffstats
path: root/tests/cmdMZ.test
diff options
context:
space:
mode:
authorMiguel Sofer <miguel.sofer@gmail.com>2006-10-09 19:15:40 (GMT)
committerMiguel Sofer <miguel.sofer@gmail.com>2006-10-09 19:15:40 (GMT)
commit25e6ad437c89b37b6e1b4c2283cc0eef267e9c06 (patch)
tree5d5d3889692f5fb9e51abfce3aeb3b7d346b2297 /tests/cmdMZ.test
parent57911c541c6dbf733b08171a1711081e59d2b95e (diff)
downloadtcl-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/cmdMZ.test')
-rw-r--r--tests/cmdMZ.test12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/cmdMZ.test b/tests/cmdMZ.test
index 2eff71f..85b7bde 100644
--- a/tests/cmdMZ.test
+++ b/tests/cmdMZ.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: cmdMZ.test,v 1.24 2004/07/06 21:08:37 dgp Exp $
+# RCS: @(#) $Id: cmdMZ.test,v 1.25 2006/10/09 19:15:44 msofer Exp $
if {[catch {package require tcltest 2.1}]} {
puts stderr "Skipping tests in [info script]. tcltest 2.1 required."
@@ -58,10 +58,10 @@ test cmdMZ-1.4 {Tcl_PwdObjCmd: failure} {unix nonPortable} {
# Tcl_RenameObjCmd
test cmdMZ-2.1 {Tcl_RenameObjCmd: error conditions} {
- list [catch {rename r1} msg] $msg $errorCode
+ list [catch {rename r1} msg] $msg $::errorCode
} {1 {wrong # args: should be "rename oldName newName"} NONE}
test cmdMZ-2.2 {Tcl_RenameObjCmd: error conditions} {
- list [catch {rename r1 r2 r3} msg] $msg $errorCode
+ list [catch {rename r1 r2 r3} msg] $msg $::errorCode
} {1 {wrong # args: should be "rename oldName newName"} NONE}
test cmdMZ-2.3 {Tcl_RenameObjCmd: success} {
catch {rename r2 {}}
@@ -248,7 +248,7 @@ test cmdMZ-3.5 {Tcl_SourceObjCmd: error in script} -body {
error "error in sourced file"
set y $x
} source.file]
- set result [list [catch {source $file} msg] $msg $errorInfo]
+ set result [list [catch {source $file} msg] $msg $::errorInfo]
removeFile source.file
set result
} -match listGlob -result {1 {error in sourced file} {error in sourced file
@@ -267,10 +267,10 @@ test cmdMZ-3.6 {Tcl_SourceObjCmd: simple script} {
# Tcl_SplitObjCmd
test cmdMZ-4.1 {Tcl_SplitObjCmd: split errors} {
- list [catch split msg] $msg $errorCode
+ list [catch split msg] $msg $::errorCode
} {1 {wrong # args: should be "split string ?splitChars?"} NONE}
test cmdMZ-4.2 {Tcl_SplitObjCmd: split errors} {
- list [catch {split a b c} msg] $msg $errorCode
+ list [catch {split a b c} msg] $msg $::errorCode
} {1 {wrong # args: should be "split string ?splitChars?"} NONE}
test cmdMZ-4.3 {Tcl_SplitObjCmd: basic split commands} {
split "a\n b\t\r c\n "