diff options
author | hobbs <hobbs> | 2002-02-22 21:51:34 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2002-02-22 21:51:34 (GMT) |
commit | 359560feea3745c1f1c6b64fa04e07c5f79ce05d (patch) | |
tree | 739da96d900a76b58080ce2094e6b3fe94ba1226 /tests | |
parent | 4a8e298f2359c287c99f2b7e7c0186ea800307c8 (diff) | |
download | tcl-359560feea3745c1f1c6b64fa04e07c5f79ce05d.zip tcl-359560feea3745c1f1c6b64fa04e07c5f79ce05d.tar.gz tcl-359560feea3745c1f1c6b64fa04e07c5f79ce05d.tar.bz2 |
updated safe-8.5 and safe-8.7
Diffstat (limited to 'tests')
-rw-r--r-- | tests/safe.test | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/safe.test b/tests/safe.test index 1642d8e..202afdf 100644 --- a/tests/safe.test +++ b/tests/safe.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: safe.test,v 1.11 2002/02/15 14:28:50 dkf Exp $ +# RCS: @(#) $Id: safe.test,v 1.12 2002/02/22 21:51:34 hobbs Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest @@ -271,6 +271,8 @@ test safe-8.4 {safe source control on file} { test safe-8.5 {safe source control on file} { + # This tested filename == *.tcl or tclIndex, but that restriction + # was removed in 8.4a4 - hobbs set i "a"; catch {safe::interpDelete $i} safe::interpCreate $i; @@ -283,7 +285,7 @@ test safe-8.5 {safe source control on file} { $log \ [safe::setLogCmd $prevlog; unset log] \ [safe::interpDelete $i] ; -} "1 {blah: must be a *.tcl or tclIndex} {{ERROR for slave a : [file join [info library] blah]:blah: must be a *.tcl or tclIndex}} {} {}" +} "1 {no such file or directory} {{ERROR for slave a : [file join [info library] blah]:no such file or directory}} {} {}" test safe-8.6 {safe source control on file} { @@ -303,6 +305,8 @@ test safe-8.6 {safe source control on file} { test safe-8.7 {safe source control on file} { + # This tested length of filename, but that restriction + # was removed in 8.4a4 - hobbs set i "a"; catch {safe::interpDelete $i} safe::interpCreate $i; @@ -316,7 +320,7 @@ test safe-8.7 {safe source control on file} { $log \ [safe::setLogCmd $prevlog; unset log] \ [safe::interpDelete $i] ; -} "1 {xxxxxxxxxxx.tcl: filename too long} {{ERROR for slave a : [file join [info library] xxxxxxxxxxx.tcl]:xxxxxxxxxxx.tcl: filename too long}} {} {}" +} "1 {no such file or directory} {{ERROR for slave a : [file join [info library] xxxxxxxxxxx.tcl]:no such file or directory}} {} {}" test safe-8.8 {safe source forbids -rsrc} { set i "a"; |