diff options
author | dgp <dgp@noemail.net> | 2005-06-22 16:02:38 (GMT) |
---|---|---|
committer | dgp <dgp@noemail.net> | 2005-06-22 16:02:38 (GMT) |
commit | 8f01b2d167ebe47e20f8da4a73e8a8beac086dde (patch) | |
tree | f1ba9ad3eb8dd80327b177af21c9588c91862840 /tests/safe.test | |
parent | 34c8770beefd476b2c4dba2b6911bf7821bd0a73 (diff) | |
download | tcl-8f01b2d167ebe47e20f8da4a73e8a8beac086dde.zip tcl-8f01b2d167ebe47e20f8da4a73e8a8beac086dde.tar.gz tcl-8f01b2d167ebe47e20f8da4a73e8a8beac086dde.tar.bz2 |
* tests/safe.test: Backport performance improvement from
reduced $::auto_path.
FossilOrigin-Name: c728e339cc9458be41712b4d5c20bbdeaf6d70b5
Diffstat (limited to 'tests/safe.test')
-rw-r--r-- | tests/safe.test | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/safe.test b/tests/safe.test index 21fad12..a26cb92 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.13 2002/05/10 18:47:11 dgp Exp $ +# RCS: @(#) $Id: safe.test,v 1.13.2.1 2005/06/22 16:02:42 dgp Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest @@ -21,6 +21,9 @@ foreach i [interp slaves] { interp delete $i } +set saveAutoPath $::auto_path +set ::auto_path [info library] + # Force actual loading of the safe package # because we use un exported (and thus un-autoindexed) APIs # in this test result arguments: @@ -519,6 +522,7 @@ test safe-11.8 {testing safe encoding} { } {1 {wrong # args: should be "encoding convertto ?encoding? data"} {}} +set ::auto_path $saveAutoPath # cleanup ::tcltest::cleanupTests return |