diff options
author | dgp@users.sourceforge.net <dgp> | 2004-12-06 22:54:10 (GMT) |
---|---|---|
committer | dgp@users.sourceforge.net <dgp> | 2004-12-06 22:54:10 (GMT) |
commit | c294afb96f8870f1516f326fcd82960a7c152d8b (patch) | |
tree | 8bc08528b3381cb31ebdae98cf446e8ed9f528c3 /tests/safe.test | |
parent | 7b15d1208b1cef51bdf13bc0e2327a9468e4b77d (diff) | |
download | tk-c294afb96f8870f1516f326fcd82960a7c152d8b.zip tk-c294afb96f8870f1516f326fcd82960a7c152d8b.tar.gz tk-c294afb96f8870f1516f326fcd82960a7c152d8b.tar.bz2 |
* tests/safe.test: Trim auto_path to improve performance [1080039]
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 b9232b3..fded018 100644 --- a/tests/safe.test +++ b/tests/safe.test @@ -6,7 +6,7 @@ # Copyright (c) 1998-1999 by Scriptics Corporation. # All rights reserved. # -# RCS: @(#) $Id: safe.test,v 1.14 2004/08/19 17:59:18 dgp Exp $ +# RCS: @(#) $Id: safe.test,v 1.15 2004/12/06 22:54:12 dgp Exp $ package require tcltest 2.1 eval tcltest::configure $argv @@ -40,6 +40,9 @@ if {"$tcl_platform(platform)" == "windows"} { set hidden_cmds {bell cd clipboard encoding exec exit fconfigure file glob grab load menu open pwd selection send socket source toplevel wm} } +set saveAutoPath $::auto_path +set auto_path [list [info library] $::tk_library] + test safe-1.1 {Safe Tk loading into an interpreter} { catch {safe::interpDelete a} safe::loadTk [safe::interpCreate a] @@ -209,6 +212,7 @@ test safe-7.1 {canvas printing} { } 0 # cleanup +set ::auto_path $saveAutoPath unset hidden_cmds cleanupTests return |