Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/tcl8.5.2/tests/macOSXLoad.test @ 68

Last change on this file since 68 was 25, checked in by landauf, 16 years ago

added tcl to libs

File size: 1.2 KB
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
15if {[lsearch [namespace children] ::tcltest] == -1} {
16    package require tcltest 2
17    namespace import -force ::tcltest::*
18}
19set oldTSF $::tcltest::testSingleFile
20set ::tcltest::testSingleFile false
21
22if {[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
32set ::tcltest::testSingleFile $oldTSF
33unset oldTSF
34::tcltest::cleanupTests
35return
Note: See TracBrowser for help on using the repository browser.