summaryrefslogtreecommitdiffstats
path: root/tests/safe.test
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2004-12-06 22:41:09 (GMT)
committerdgp <dgp@users.sourceforge.net>2004-12-06 22:41:09 (GMT)
commit5098d93a5364fb60487e91ae9fd4fd809c016a4a (patch)
treed30c0040f04848ffdaaf5a4e83f7830b11386d95 /tests/safe.test
parent199c1fb12767c9ef58c43b56f33ca3113eb738ab (diff)
downloadtcl-5098d93a5364fb60487e91ae9fd4fd809c016a4a.zip
tcl-5098d93a5364fb60487e91ae9fd4fd809c016a4a.tar.gz
tcl-5098d93a5364fb60487e91ae9fd4fd809c016a4a.tar.bz2
* tests/safe.test: Trim auto_path to improve performance [1080039]
Diffstat (limited to 'tests/safe.test')
-rw-r--r--tests/safe.test6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/safe.test b/tests/safe.test
index 985220c..e08586b 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.17 2004/08/18 19:59:08 kennykb Exp $
+# RCS: @(#) $Id: safe.test,v 1.18 2004/12/06 22:41:10 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:
@@ -478,6 +481,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