~ubuntu-branches/ubuntu/gutsy/tk8.4/gutsy-updates

« back to all changes in this revision

Viewing changes to tests/safe.test

  • Committer: Bazaar Package Importer
  • Author(s): Chris Waters
  • Date: 2005-09-06 14:35:13 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20050906143513-7ns3rwufmpiq871b
Tags: 8.4.11-1
* New upstream release.
* Needed to fix mechanism for picking up SONAME.  Now uses special
  macro, TK_SHLIB_LD_EXTRAS, and only for Linux, Hurd and DebianBSD.
* Fixed some possible-bashisms in preinst.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
# Copyright (c) 1998-1999 by Scriptics Corporation.
7
7
# All rights reserved.
8
8
#
9
 
# RCS: @(#) $Id: safe.test,v 1.10.2.1 2004/10/26 23:23:13 dgp Exp $
 
9
# RCS: @(#) $Id: safe.test,v 1.10.2.2 2005/06/06 22:46:51 dgp Exp $
10
10
 
11
11
package require tcltest 2.1
12
12
namespace import -force tcltest::configure
45
45
    set hidden_cmds {bell cd clipboard encoding exec exit fconfigure file glob grab load menu open pwd selection send socket source toplevel wm}
46
46
}
47
47
 
 
48
set saveAutoPath $::auto_path
 
49
set ::auto_path [list [info library] $::tk_library]
 
50
 
48
51
test safe-1.1 {Safe Tk loading into an interpreter} {
49
52
    catch {safe::interpDelete a}
50
53
    safe::loadTk [safe::interpCreate a]
214
217
} 0
215
218
 
216
219
# cleanup
 
220
set ::auto_path $saveAutoPath
217
221
unset hidden_cmds
218
222
::tcltest::cleanupTests
219
223
return