summaryrefslogtreecommitdiffstats
path: root/tests/tcltest.test
diff options
context:
space:
mode:
authormsofer <msofer@noemail.net>2006-10-09 19:15:39 (GMT)
committermsofer <msofer@noemail.net>2006-10-09 19:15:39 (GMT)
commita2e762f2ecd77b978a5f7a805ffc5d761a6de9da (patch)
tree5d5d3889692f5fb9e51abfce3aeb3b7d346b2297 /tests/tcltest.test
parent5c836dad84b63ad67ada7abd51b01260d0ad6750 (diff)
downloadtcl-a2e762f2ecd77b978a5f7a805ffc5d761a6de9da.zip
tcl-a2e762f2ecd77b978a5f7a805ffc5d761a6de9da.tar.gz
tcl-a2e762f2ecd77b978a5f7a805ffc5d761a6de9da.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. FossilOrigin-Name: a8fcd798f4d17d4d3c958b65f206e78267d99627
Diffstat (limited to 'tests/tcltest.test')
-rwxr-xr-xtests/tcltest.test12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/tcltest.test b/tests/tcltest.test
index 7515a80..421a777 100755
--- a/tests/tcltest.test
+++ b/tests/tcltest.test
@@ -6,7 +6,7 @@
# Copyright (c) 2000 by Ajuba Solutions
# All rights reserved.
#
-# RCS: @(#) $Id: tcltest.test,v 1.53 2006/03/18 18:15:13 vincentdarley Exp $
+# RCS: @(#) $Id: tcltest.test,v 1.54 2006/10/09 19:15:45 msofer Exp $
# Note that there are several places where the value of
# tcltest::currentFailure is stored/reset in the -setup/-cleanup
@@ -439,7 +439,7 @@ test tcltest-6.7 {tcltest::outputChannel - retrieval} {
}
-result {stdout}
-cleanup {
- set tcltest::outputChannel $of
+ set ::tcltest::outputChannel $of
}
}
@@ -551,7 +551,7 @@ set notWriteableDir [file join [temporaryDirectory] notwriteable]
makeDirectory notreadable
makeDirectory notwriteable
-switch -- $tcl_platform(platform) {
+switch -- $::tcl_platform(platform) {
"unix" {
file attributes $notReadableDir -permissions 00333
file attributes $notWriteableDir -permissions 00555
@@ -684,7 +684,7 @@ test tcltest-8.60 {::workingDirectory} {
# clean up from directory testing
-switch $tcl_platform(platform) {
+switch $::tcl_platform(platform) {
"unix" {
file attributes $notReadableDir -permissions 777
file attributes $notWriteableDir -permissions 777
@@ -1759,7 +1759,7 @@ test tcltest-25.3 {
test tcltest-26.1 {Bug/RFE 1017151} -setup {
makeFile {
package require tcltest
- set errorInfo "Should never see this"
+ set ::errorInfo "Should never see this"
tcltest::test tcltest-26.1.0 {
no errorInfo when only return code mismatch
} -body {
@@ -1779,7 +1779,7 @@ test tcltest-26.1 {Bug/RFE 1017151} -setup {
test tcltest-26.2 {Bug/RFE 1017151} -setup {
makeFile {
package require tcltest
- set errorInfo "Should never see this"
+ set ::errorInfo "Should never see this"
tcltest::test tcltest-26.2.0 {do not mask body errorInfo} -body {
error "body error"
} -cleanup {