summaryrefslogtreecommitdiffstats
path: root/tests/safe.test
diff options
context:
space:
mode:
authordgp <dgp@noemail.net>2004-10-26 23:22:59 (GMT)
committerdgp <dgp@noemail.net>2004-10-26 23:22:59 (GMT)
commit8f852fdb1dacdec36ec6effcb59af1416d5b49a0 (patch)
tree54e05130f9ac14726b309d42355a37e0b17a57bf /tests/safe.test
parent004f928948e4d79e2b7cd65d731123e68c1084dc (diff)
downloadtk-8f852fdb1dacdec36ec6effcb59af1416d5b49a0.zip
tk-8f852fdb1dacdec36ec6effcb59af1416d5b49a0.tar.gz
tk-8f852fdb1dacdec36ec6effcb59af1416d5b49a0.tar.bz2
* tests/safe.test (safe-1.3): Made test less sensitve to the
full set of existing aliases in an interp, so the it only tests whether the tested ones are present. * unix/Makefile.in: Copied LD_LIBRARY_PATH machinery from `make shell` target to other similar targets so that just built libraries are tested, rather than previous installations. FossilOrigin-Name: fa2305f85c0453bebb3e335ccad72723d0c1e72e
Diffstat (limited to 'tests/safe.test')
-rw-r--r--tests/safe.test6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/safe.test b/tests/safe.test
index 060a1e1..45976c3 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 2002/09/02 19:16:24 hobbs Exp $
+# RCS: @(#) $Id: safe.test,v 1.10.2.1 2004/10/26 23:23:13 dgp Exp $
package require tcltest 2.1
namespace import -force tcltest::configure
@@ -60,14 +60,14 @@ test safe-1.2 {Safe Tk loading into an interpreter} {
safe::interpDelete a
set l
} $hidden_cmds
-test safe-1.3 {Safe Tk loading into an interpreter} {
+test safe-1.3 {Safe Tk loading into an interpreter} -body {
catch {safe::interpDelete a}
safe::interpCreate a
safe::loadTk a
set l [lsort [interp aliases a]]
safe::interpDelete a
set l
-} {encoding exit file load source}
+} -match glob -result {*encoding*exit*file*load*source*}
test safe-2.1 {Unsafe commands not available} {
catch {safe::interpDelete a}