From 359560feea3745c1f1c6b64fa04e07c5f79ce05d Mon Sep 17 00:00:00 2001 From: hobbs Date: Fri, 22 Feb 2002 21:51:34 +0000 Subject: updated safe-8.5 and safe-8.7 --- tests/safe.test | 10 +++++++--- 1 file 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"; -- cgit v0.12