summaryrefslogtreecommitdiffstats
path: root/tests/safe.test
diff options
context:
space:
mode:
authordgp <dgp@noemail.net>2005-06-06 22:46:50 (GMT)
committerdgp <dgp@noemail.net>2005-06-06 22:46:50 (GMT)
commit14668f2505d1b836206e9d978c28acc82aff56f6 (patch)
tree4a6e0508f2b4df060f27287968f97352152ecd9f /tests/safe.test
parent72b1672f50b53f4165f14fd9a83121232c0cf49c (diff)
downloadtk-14668f2505d1b836206e9d978c28acc82aff56f6.zip
tk-14668f2505d1b836206e9d978c28acc82aff56f6.tar.gz
tk-14668f2505d1b836206e9d978c28acc82aff56f6.tar.bz2
backport auto_path trimdown to speed up safe.test
FossilOrigin-Name: 6e98258c2fe30799723c323bbd01464d73b76bd4
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 45976c3..aa9e100 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.10.2.1 2004/10/26 23:23:13 dgp Exp $
+# RCS: @(#) $Id: safe.test,v 1.10.2.2 2005/06/06 22:46:51 dgp Exp $
package require tcltest 2.1
namespace import -force tcltest::configure
@@ -45,6 +45,9 @@ if {"$tcl_platform(platform)" == "macintosh"} {
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]
@@ -214,6 +217,7 @@ test safe-7.1 {canvas printing} {
} 0
# cleanup
+set ::auto_path $saveAutoPath
unset hidden_cmds
::tcltest::cleanupTests
return