Line | |
---|
1 | # Commands covered: load unload |
---|
2 | # |
---|
3 | # This file contains a collection of tests for one or more of the Tcl |
---|
4 | # built-in commands. Sourcing this file into Tcl runs the tests and |
---|
5 | # generates output for errors. No output means no errors were found. |
---|
6 | # |
---|
7 | # Copyright (c) 1995 Sun Microsystems, Inc. |
---|
8 | # Copyright (c) 1998-1999 by Scriptics Corporation. |
---|
9 | # |
---|
10 | # See the file "license.terms" for information on usage and redistribution |
---|
11 | # of this file, and for a DISCLAIMER OF ALL WARRANTIES. |
---|
12 | # |
---|
13 | # RCS: @(#) $Id: macOSXLoad.test,v 1.1 2006/12/17 03:47:08 das Exp $ |
---|
14 | |
---|
15 | if {[lsearch [namespace children] ::tcltest] == -1} { |
---|
16 | package require tcltest 2 |
---|
17 | namespace import -force ::tcltest::* |
---|
18 | } |
---|
19 | set oldTSF $::tcltest::testSingleFile |
---|
20 | set ::tcltest::testSingleFile false |
---|
21 | |
---|
22 | if {[testConstraint unix] && $tcl_platform(os) eq "Darwin" && |
---|
23 | ![string match *pkga* [info loaded]]} { |
---|
24 | # On Darwin, test .bundle (un)loading in addition to .dylib |
---|
25 | set ext .bundle |
---|
26 | source [file join [file dirname [info script]] load.test] |
---|
27 | set ext .bundle |
---|
28 | source [file join [file dirname [info script]] unload.test] |
---|
29 | unset -nocomplain ext |
---|
30 | } |
---|
31 | |
---|
32 | set ::tcltest::testSingleFile $oldTSF |
---|
33 | unset oldTSF |
---|
34 | ::tcltest::cleanupTests |
---|
35 | return |
---|
Note: See
TracBrowser
for help on using the repository browser.